From b56b4a2838abe0b7d48527c8ca0cc051666ec1e7 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 22 Aug 2011 12:15:08 +0000 Subject: [PATCH] clean-suites: preserve source packages referenced in extra_src_references --- dak/clean_suites.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 9713de34..b08c9444 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -128,6 +128,7 @@ SELECT s.id, s.file, f.filename (SELECT sa.source FROM src_associations sa) AND s.id NOT IN (SELECT b.source FROM binaries b) + AND s.id NOT IN (SELECT esr.src_id FROM extra_src_references esr) AND f.id NOT IN (SELECT bqf.fileid FROM build_queue_files bqf)""") @@ -171,6 +172,7 @@ SELECT s.id, s.file, f.filename SELECT f.id, f.filename FROM source s, files f, dsc_files df WHERE f.last_used IS NOT NULL AND s.id = df.source AND df.file = f.id AND ((EXISTS (SELECT 1 FROM src_associations sa WHERE sa.source = s.id)) + OR (EXISTS (SELECT 1 FROM extra_src_references esr WHERE esr.src_id = s.id)) OR (EXISTS (SELECT 1 FROM binaries b WHERE b.source = s.id)) OR (EXISTS (SELECT 1 FROM build_queue_files bqf WHERE bqf.fileid = s.file)))""") -- 2.39.5