From 8af6851fe92c293de63a8d891fb95127892316a6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 07:06:51 -0400 Subject: [PATCH] Delete URLs not in update list (untested). --- freshmeat-submit | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/freshmeat-submit b/freshmeat-submit index e131afb..f226649 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -153,12 +153,11 @@ class FreshmeatSession: "POST", {"url" : {"label": label, "location" : url}}) # Delete URLs that weren't in the update list - # FIXME: This cannot work yet: there's no auth code! remove = set(permadict.keys()) - set(lambda x: x[0], urlassoc) - #for label in remove: - # self.edit_request("projects/%s/urls/%s.json" - # % (self.permalink, permadict[label]), - # "DELETE") + for label in remove: + self.edit_request("projects/%s/urls/%s.json?auth_code=%s" + % (self.permalink, permadict[label], self.auth), + "DELETE") class FreshmeatMetadataFactory: "Factory class for producing Freshmeat records in JSON." freshmeat_field_map = ( -- 2.43.0