From: Luca Falavigna Date: Wed, 15 Aug 2012 22:59:09 +0000 (+0000) Subject: Show correct actions while processing NEW queue X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=1ea2a64a2b01c6fa4456451de487414111504171 Show correct actions while processing NEW queue Signed-off-by: Luca Falavigna --- 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)