]> err.no Git - dak/commitdiff
try emptying the lists another way
authorMark Hymers <mhy@debian.org>
Sun, 15 Nov 2009 19:22:57 +0000 (19:22 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 15 Nov 2009 19:22:57 +0000 (19:22 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 7047f59bbc3ea5ad1f39b431c28a10037ed9b0ec..1418d081856192b9574fa6a63800138df9c36794 100644 (file)
@@ -1441,12 +1441,10 @@ class DBChange(object):
         session = DBConn().session().object_session(self)
 
         # Remove changes_pool_files entries
-        for pf in self.poolfiles:
-            self.poolfiles.remove(pf)
+        self.poolfiles = []
 
-        # Remove change
-        for cf in self.files:
-            self.files.remove(cf)
+        # Remove changes_pending_files references
+        self.files = []
 
         # Clear out of queue
         self.in_queue = None