From 0af9c372452c25c9726feff64ced6f928c818e4d Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 3 Jan 2010 15:35:46 +0100 Subject: [PATCH] policy-queue also output ACCEPT/REJECT on stdout, making mails to -release a bit more informative Signed-off-by: Joerg Jaspert --- dak/process_policy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)]) -- 2.39.5