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

[dak/master] queue-report: Also print unprocessed changes files



For the sake of clarity, if there are any changes files that couldn't
be processed (due to our inability to find the source, see byhand +
ftptrainee case), also display those in the text report.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
---
 dak/queue_report.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dak/queue_report.py b/dak/queue_report.py
index dba3876..9de1f54 100755
--- a/dak/queue_report.py
+++ b/dak/queue_report.py
@@ -370,6 +370,7 @@ RRA:MAX:0.5:288:795
 def process_changes_files(changes_files, type, log, rrd_dir):
     msg = ""
     cache = {}
+    unprocessed = []
     # Read in all the .changes files
     for filename in changes_files:
         try:
@@ -384,6 +385,7 @@ def process_changes_files(changes_files, type, log, rrd_dir):
     per_source = {}
     for filename in cache.keys():
 	if not cache[filename].has_key("source"):
+            unprocessed.append(filename)
             continue
         source = cache[filename]["source"]
         if not per_source.has_key(source):
@@ -603,6 +605,12 @@ def process_changes_files(changes_files, type, log, rrd_dir):
             print "%s %s source package%s / %s %s package%s in total." % (source_count, type, plural(source_count), total_count, type, plural(total_count))
             print
 
+        if len(unprocessed):
+            print "UNPROCESSED"
+            print "-----------"
+            for u in unprocessed:
+                print u
+            print
 
 ################################################################################
 
-- 
1.7.2.5


Reply to: