From: Mark Hymers Date: Tue, 27 Oct 2009 20:27:13 +0000 (+0000) Subject: let's not reset last_used every time... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=09e6457141375c9a3a759f345a98c20a0f1d56f6;p=dak.git let's not reset last_used every time... Signed-off-by: Mark Hymers --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index dc4f0197..7ea90b82 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -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()