From e36a38fd957ad5c9e571981648244eda915d8ffc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 08:51:40 -0400 Subject: [PATCH] Information for the latest release is now in the query output. --- freshmeat-submit | 10 ++++++++++ freshmeat-submit.xml | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) 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. -- 2.43.0