X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_suites.py;h=f16474b14ff0405abe2c5fdeca54f8c9cd8b6453;hb=fad6965611f8320f00f5e1d75b20ba38a0bd9f8a;hp=e7808ec9c77cb0dbbb5f4eabd3fd918841de5e9e;hpb=9e40c7aa193ec9a3e4041369298167c9d0402fdf;p=dak.git 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