]> git.decadent.org.uk Git - dak.git/commitdiff
Fix hideous data loss bug.
authorJames Troup <james@nocrew.org>
Fri, 2 Mar 2001 02:43:49 +0000 (02:43 +0000)
committerJames Troup <james@nocrew.org>
Fri, 2 Mar 2001 02:43:49 +0000 (02:43 +0000)
shania

diff --git a/shania b/shania
index 7a988901f82e366afbd6431e40a864bc3df450dd..7497b630530664149282a26075729788fe9eaf55 100755 (executable)
--- a/shania
+++ b/shania
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
 # Clean incoming of old unused files
-# Copyright (C) 2000  James Troup <james@nocrew.org>
-# $Id: shania,v 1.2 2001-01-28 09:06:44 troup Exp $
+# Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
+# $Id: shania,v 1.3 2001-03-02 02:43:49 troup Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -173,10 +173,12 @@ Debian distribution maintenance software
                         print "Sent reminder email to %s." % (changes["maintainer822"]);
         else:
             # Ensure the files aren't deleted
-            for keys in (files.keys(), dsc_files.keys(), changes_filename):
-                for i in keys:
-                    if all_files.has_key(i):
-                        del all_files[i];
+            keys = [];
+            for i in (files.keys(), dsc_files.keys(), [changes_filename]):
+                keys.extend(i);
+            for key in keys:
+                if all_files.has_key(key):
+                    del all_files[key];
 
     # Anthing left at this stage is not referenced by a .changes or
     # .dsc and should be deleted if old enough.