From 1ea2a64a2b01c6fa4456451de487414111504171 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Wed, 15 Aug 2012 22:59:09 +0000 Subject: [PATCH] Show correct actions while processing NEW queue Signed-off-by: Luca Falavigna --- dak/process_new.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dak/process_new.py b/dak/process_new.py index 0b71541b..583143bb 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -457,7 +457,6 @@ def get_reject_reason(reason=''): ################################################################################ def do_new(upload, upload_copy, handler, session): - print "NEW\n" cnf = Config() run_user_inspect_command(upload, upload_copy) @@ -475,6 +474,9 @@ def do_new(upload, upload_copy, handler, session): #if len(byhand) == 0 and len(missing) == 0: # break + if missing: + print "NEW\n" + answer = "XXX" if Options["No-Action"] or Options["Automatic"]: answer = 'S' @@ -568,6 +570,9 @@ def do_new(upload, upload_copy, handler, session): end() sys.exit(0) + if handler.get_action(): + print "PENDING %s\n" % handler.get_action() + ################################################################################ ################################################################################ ################################################################################ @@ -668,6 +673,7 @@ def do_pkg(upload, session): with UploadCopy(upload) as upload_copy: handler = PolicyQueueUploadHandler(upload, session) if handler.get_action() is not None: + print "PENDING %s\n" % handler.get_action() return do_new(upload, upload_copy, handler, session) -- 2.39.5