[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Show correct actions while processing NEW queue



Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
 dak/process_new.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dak/process_new.py b/dak/process_new.py
index 0b71541..583143b 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)
-- 
1.7.2.5



Reply to: