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
################################################################################
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)])