From: Eric S. Raymond Date: Wed, 20 Oct 2010 12:51:40 +0000 (-0400) Subject: Information for the latest release is now in the query output. X-Git-Tag: 2.1~6 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e36a38fd957ad5c9e571981648244eda915d8ffc;p=freecode-submit.git Information for the latest release is now in the query output. --- diff --git a/freshmeat-submit b/freshmeat-submit index 0ce240c..20085d4 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -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: diff --git a/freshmeat-submit.xml b/freshmeat-submit.xml index e35d3fe..7dcd9a6 100644 --- a/freshmeat-submit.xml +++ b/freshmeat-submit.xml @@ -51,7 +51,8 @@ API. 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. +to this tool. The data with release rather than project scope is for +the most recent release.