]> git.decadent.org.uk Git - dak.git/commitdiff
dak/process_upload.py: add missing "not"; set subst variable at the right time
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 13:25:51 +0000 (15:25 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 13:25:51 +0000 (15:25 +0200)
dak/process_upload.py

index 8b9a178aa9e0a417ff2c2bbd66ada85c92c706bd..74229e2f482b46d5f58ee351886766c6699bd4ca 100755 (executable)
@@ -305,15 +305,17 @@ def accept(directory, upload):
     subst = subst_for_upload(upload)
     announce = set()
     for suite in upload.final_suites:
-        if suite.policy_queue is None:
+        if suite.policy_queue is not None:
             continue
         announce.update(suite.announce or [])
     announce_address = ", ".join(announce)
-    subst['__ANNOUNCE_LIST_ADDRESS__'] = announce_address
 
     tracking = cnf.get('Dinstall::TrackingServer')
     if tracking and 'source' in upload.changes.architectures:
         announce_address = '{0}\nBcc: {1}@{2}'.format(announce_address, control['Source'], tracking)
+
+    subst['__ANNOUNCE_LIST_ADDRESS__'] = announce_address
+
     message = utils.TemplateSubst(subst, os.path.join(cnf['Dir::Templates'], 'process-unchecked.announce'))
     utils.send_mail(message)