From 4eaed7be3ffb72a27278b4c5f354259da5b6dca5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Oct 2010 06:19:36 -0400 Subject: [PATCH] Incomplete code for removing URLs that are not in the update. --- freshmeat-submit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/freshmeat-submit b/freshmeat-submit index 79730f7..e131afb 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -152,7 +152,13 @@ class FreshmeatSession: % (self.permalink,), "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") class FreshmeatMetadataFactory: "Factory class for producing Freshmeat records in JSON." freshmeat_field_map = ( -- 2.43.0