]> thyrsus.com Git - freecode-submit.git/commitdiff
Information for the latest release is now in the query output.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 12:51:40 +0000 (08:51 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Oct 2010 12:51:40 +0000 (08:51 -0400)
freshmeat-submit
freshmeat-submit.xml

index 0ce240c5c75bd5768b7ca4cbd1ed99ea89b6cd32..20085d4351c15b3d8cccb52876ed678d7fd87059 100755 (executable)
@@ -319,6 +319,16 @@ if __name__ == "__main__":
             print "Project-Tag-List: %s" % ",".join(session.project_data["tag_list"])
             for assoc in session.project_data['approved_urls']:
                 print "%s-URL: %s" % (assoc["label"].replace(" ","-"), assoc["redirector"])
+            if 'recent_releases' in session.project_data:
+                most_recent = session.project_data['recent_releases'][0]
+                print "Version: %s" % most_recent['version'] 
+                print "Tag-List: %s" % ",".join(most_recent['tag_list'])
+                if most_recent.get('hidden_from_frontpage'):
+                    print "Hide: Y"
+                else:
+                    print "Hide: N"
+                print ""
+                print most_recent["changelog"]
         else:
             # OK, now actually add or delete the release.
             if update.per_project:
index e35d3fe9f3b23932eaf366c68f3327a738900cd9..7dcd9a621989e43621e3e42a73de9a028d4ab878 100644 (file)
@@ -51,7 +51,8 @@ API.</para>
 <listitem>
 <para>Query the specified project. Delivers to standard output a job
 card describing the project metadata that can be edited and fed back
-to this tool.</para>
+to this tool. The data with release rather than project scope is for
+the most recent release.</para>
 </listitem>
 </varlistentry>
 <varlistentry>