From: Mark Hymers Date: Sun, 15 Nov 2009 19:22:57 +0000 (+0000) Subject: try emptying the lists another way X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4298f9fe5c993f4981f7d4f337e2dcccda4fc073;p=dak.git try emptying the lists another way Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 7047f59b..1418d081 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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