From: Joerg Jaspert Date: Sun, 3 Jan 2010 14:35:46 +0000 (+0100) Subject: policy-queue X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0af9c372452c25c9726feff64ced6f928c818e4d;p=dak.git policy-queue also output ACCEPT/REJECT on stdout, making mails to -release a bit more informative Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_policy.py b/dak/process_policy.py index 16a88101..a93ddfc3 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -80,9 +80,10 @@ def comment_accept(changes_file, srcqueue, comments, session): if not Options["No-Action"]: destqueue = get_policy_queue('newstage', session) if changes_to_queue(u, srcqueue, destqueue, session): - Logger.log(["Policy Queue ACCEPT: %s: %s" % (srcqueue.queue_name, u.pkg.changes_file)]) + print " ACCEPT" + Logger.log(["Policy Queue ACCEPT: %s: %s" % (srcqueue.queue_name, u.pkg.changes_file)]) else: - print "E: Failed to migrate %s" % u.pkg.changes_file + print "E: Failed to migrate %s" % u.pkg.changes_file ################################################################################ @@ -106,6 +107,7 @@ def comment_reject(changes_file, srcqueue, comments, session): u.pkg.remove_known_changes(session=session) session.commit() + print " REJECT" Logger.log(["Policy Queue REJECT: %s: %s" % (srcqueue.queue_name, u.pkg.changes_file)])