From d3bfcc6bffe3518df04e203ee9789bb82587c53a Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 23 Apr 2008 23:13:40 +0200 Subject: [PATCH] fix clean_suites to not try deleting changedby entries that are used --- 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 a59d6e3a..e680f5ef 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -250,7 +250,7 @@ def clean_maintainers(): q = projectB.query(""" SELECT m.id FROM maintainer m WHERE NOT EXISTS (SELECT 1 FROM binaries b WHERE b.maintainer = m.id) - AND NOT EXISTS (SELECT 1 FROM source s WHERE s.maintainer = m.id) + AND NOT EXISTS (SELECT 1 FROM source s WHERE s.maintainer = m.id OR s.changedby = m.id) AND NOT EXISTS (SELECT 1 FROM src_uploaders u WHERE u.maintainer = m.id)""") ql = q.getresult() -- 2.39.5