From cec8f2c1492f4ba27babfcc16bf2ecc5fbf9d9ec Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 12 Aug 2012 15:25:51 +0200 Subject: [PATCH] dak/process_upload.py: add missing "not"; set subst variable at the right time --- dak/process_upload.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dak/process_upload.py b/dak/process_upload.py index 8b9a178a..74229e2f 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -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) -- 2.39.5