From: Joerg Jaspert Date: Wed, 23 Apr 2008 21:13:40 +0000 (+0200) Subject: fix clean_suites to not try deleting changedby entries that are used X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d3bfcc6bffe3518df04e203ee9789bb82587c53a;p=dak.git fix clean_suites to not try deleting changedby entries that are used --- 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()