From: Ansgar Burchardt Date: Fri, 17 Aug 2012 09:49:31 +0000 (+0200) Subject: dak/clean_suites.py (check_sources): af_bin.last_used can be NULL X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad6965611f8320f00f5e1d75b20ba38a0bd9f8a;p=dak dak/clean_suites.py (check_sources): af_bin.last_used can be NULL --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index e7808ec9..f16474b1 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -138,7 +138,7 @@ def check_sources(now_date, session): JOIN binaries b ON af_bin.file_id = b.file WHERE b.source = df.source AND af_bin.archive_id = af.archive_id - AND af_bin.last_used > ad.delete_date) + AND (af_bin.last_used IS NULL OR af_bin.last_used > ad.delete_date)) OR EXISTS (SELECT 1 FROM extra_src_references esr JOIN bin_associations ba ON esr.bin_id = ba.bin JOIN binaries b ON ba.bin = b.id