]> git.decadent.org.uk Git - dak.git/commitdiff
dak/dominate.py: skip suites that are backends for policy queues
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 10 Jun 2012 14:22:07 +0000 (16:22 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 11 Aug 2012 11:43:07 +0000 (13:43 +0200)
dak/dominate.py

index a6be1b035adc841f35fec7d83f6ac3c8e015e94b..1c77ee66b09cf74476721350128db3c16bdb6a13 100755 (executable)
@@ -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']: