From fad6965611f8320f00f5e1d75b20ba38a0bd9f8a Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 17 Aug 2012 11:49:31 +0200 Subject: [PATCH] dak/clean_suites.py (check_sources): af_bin.last_used can be NULL --- dak/clean_suites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2