]> git.decadent.org.uk Git - dak.git/commitdiff
queue-report: Also print unprocessed changes files
authorGergely Nagy <algernon@madhouse-project.org>
Thu, 14 Jun 2012 08:14:43 +0000 (08:14 +0000)
committerGergely Nagy <algernon@madhouse-project.org>
Thu, 14 Jun 2012 08:14:43 +0000 (08:14 +0000)
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

index dba38769a5a9d96b9bbc4080f6ce2b3f11768db6..9de1f5459dbfa4ac72f63cc1e861026f71609138 100755 (executable)
@@ -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
 
 ################################################################################