]> git.decadent.org.uk Git - dak.git/commitdiff
let's not reset last_used every time...
authorMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 20:27:13 +0000 (20:27 +0000)
committerMark Hymers <mhy@debian.org>
Tue, 27 Oct 2009 20:27:13 +0000 (20:27 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/clean_suites.py

index dc4f019722dcdefc5267b49b485715a2906d0937..7ea90b8254cacadadd1d6d9b368bd7141b5b6bd2 100755 (executable)
@@ -163,6 +163,7 @@ def check_files(now_date, delete_date, max_delete, session):
 SELECT id, filename FROM files f
   WHERE NOT EXISTS (SELECT 1 FROM binaries b WHERE b.file = f.id)
     AND NOT EXISTS (SELECT 1 FROM dsc_files df WHERE df.file = f.id)
+    AND last_used IS NULL
     ORDER BY filename""")
 
     ql = q.fetchall()