From dbb12bef1f24fec53af75031bfd5e950ccd5bb76 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 14 Oct 2010 23:19:12 -0400 Subject: [PATCH] We can parse out the permalink. --- freshmeat-submit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freshmeat-submit b/freshmeat-submit index 21afa2a..8257fe5 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -63,8 +63,10 @@ class FreshmeatSession: % (self.project, self.auth) self.handle = urllib2.urlopen(query) content = json.loads(self.handle.read()) - print "Header", self.handle.info() - print "Content", content + content = content['project'] + self.permalink = content['permalink'] + if self.verbose: + print "Permalink:", self.permalink def publish_release(self, data): "Add a new release to the current project." -- 2.43.0