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)