From efe5a0987bd7198b2f95c88bff5f27b20f75611c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 07:43:33 -0400 Subject: [PATCH] Query mode is fully supported. --- freshmeat-submit | 7 +++++-- freshmeat-submit.xml | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/freshmeat-submit b/freshmeat-submit index fbe4307..5a35d94 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -311,8 +311,11 @@ if __name__ == "__main__": session = FreshmeatSession(verbose=int(verbose), emit_enable=not dryrun) session.on_project(update.name) if options.query: - print "Querying %s: not yet supported." % options.query - print session.project_data + print "Project: %s" % session.project_data["name"] + print "Summary: %s" % session.project_data["oneliner"] + print "Description: %s" % session.project_data["description"].replace("\n", "\n ").rstrip() + print "License-List: %s" % ",".join(session.project_data["license_list"]) + print "Project-Tag-List: %s" % ",".join(session.project_data["tag_list"]) else: # OK, now actually add or delete the release. if update.per_project: diff --git a/freshmeat-submit.xml b/freshmeat-submit.xml index 3a7db4b..5597e35 100644 --- a/freshmeat-submit.xml +++ b/freshmeat-submit.xml @@ -18,6 +18,7 @@ freshmeat-submit + -q -V -n -N @@ -46,6 +47,14 @@ API. +-q, --query + +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. + + + -d, --delete Delete the specified release rather than submitting it. With -- 2.43.0