From: Ansgar Burchardt Date: Sun, 10 Jun 2012 14:22:07 +0000 (+0200) Subject: dak/dominate.py: skip suites that are backends for policy queues X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=63e12db5695f3da7384c11d27451f2f53d7e4237;p=dak.git dak/dominate.py: skip suites that are backends for policy queues --- diff --git a/dak/dominate.py b/dak/dominate.py index a6be1b03..1c77ee66 100755 --- a/dak/dominate.py +++ b/dak/dominate.py @@ -141,6 +141,12 @@ def main(): session = DBConn().session() for suite_name in utils.split_args(Options['Suite']): suite = session.query(Suite).filter_by(suite_name = suite_name).one() + + # Skip policy queues. We don't want to remove obsolete packages from those. + policy_queue = session.query(PolicyQueue).filter_by(suite=suite).first() + if policy_queue is not None: + continue + if not suite.untouchable or Options['Force']: doDaDoDa(suite.suite_id, session) if Options['No-Action']: