X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_upload.py;h=74229e2f482b46d5f58ee351886766c6699bd4ca;hb=039b87c9a0d68c3acd4cd893396334d6f3ea06a0;hp=28a60a931073a2e83c8abd3ab79cf1c2434c0f25;hpb=e1a9b191d515e9c64ca610fc48622c0131b45f14;p=dak.git diff --git a/dak/process_upload.py b/dak/process_upload.py index 28a60a93..74229e2f 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -305,16 +305,22 @@ 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) + 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) + del subst['__ANNOUNCE_LIST_ADDRESS__'] + # Only close bugs for uploads that were not redirected to a policy queue. # process-policy will close bugs for those once they are accepted. subst = subst_for_upload(upload)