]> err.no Git - dak/commitdiff
Also send announcements when accepting uploads from policy queues.
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 15 Aug 2012 20:17:20 +0000 (22:17 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 15 Aug 2012 20:17:20 +0000 (22:17 +0200)
dak/process_policy.py
daklib/announce.py

index 30e10c4d06679f1b93c934cf003f07463ee6756a..6dd1e36f24589a28b21692f91f8997d4ff471995 100755 (executable)
@@ -265,7 +265,7 @@ def get_processed_upload(upload):
     pu.changed_by = upload.changes.changedby
     pu.fingerprint = upload.changes.fingerprint
 
-    pu.suites = []
+    pu.suites = [ upload.target_suite ]
     pu.from_policy_suites = [ upload.target_suite ]
 
     changes_path = os.path.join(upload.policy_queue.path, upload.changes.changesname)
index 51a07d90f99965edd8eb464c49221997999249cf..dec3e6029ac971a57e04be00b30d8c4f93509ee5 100644 (file)
@@ -109,7 +109,7 @@ def announce_accept(upload):
     cnf = Config()
     subst = _subst_for_upload(upload)
 
-    accepted_to_real_suite = any(suite.policy_queue is None for suite in upload.suites)
+    accepted_to_real_suite = any(suite.policy_queue is None or suite in upload.from_policy_suites for suite in upload.suites)
 
     suite_names = []
     for suite in upload.suites:
@@ -127,9 +127,8 @@ def announce_accept(upload):
         # senf mail to announce lists and tracking server
         announce = set()
         for suite in upload.suites:
-            if suite.policy_queue is None:
-                continue
-            announce.update(suite.announce or [])
+            if suite.policy_queue is None or suite in upload.from_policy_suites:
+                announce.update(suite.announce or [])
 
         announce_list_address = ", ".join(announce)