From 63e12db5695f3da7384c11d27451f2f53d7e4237 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 10 Jun 2012 16:22:07 +0200 Subject: [PATCH] dak/dominate.py: skip suites that are backends for policy queues --- dak/dominate.py | 6 ++++++ 1 file changed, 6 insertions(+) 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']: -- 2.39.5