From: Mark Hymers Date: Sat, 5 Dec 2009 20:36:42 +0000 (+0000) Subject: fill in headers at reject time X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc024f70b96689cdaa08343c62aa92375869485d;p=dak fill in headers at reject time Signed-off-by: Mark Hymers --- diff --git a/dak/process_policy.py b/dak/process_policy.py index c23a3cdc..16a88101 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -94,9 +94,17 @@ def comment_reject(changes_file, srcqueue, comments, session): u.rejects.append(comments) + cnf = Config() + bcc = "X-DAK: dak process-policy" + if cnf.has_key("Dinstall::Bcc"): + u.Subst["__BCC__"] = bcc + "\nBcc: %s" % (cnf["Dinstall::Bcc"]) + else: + u.Subst["__BCC__"] = bcc + if not Options["No-Action"]: u.do_reject(manual=0, reject_message='\n'.join(u.rejects)) u.pkg.remove_known_changes(session=session) + session.commit() Logger.log(["Policy Queue REJECT: %s: %s" % (srcqueue.queue_name, u.pkg.changes_file)])