]> git.decadent.org.uk Git - dak.git/commitdiff
Merge remote-tracking branch 'algernon/b/queue-report/byhand-trainee' into merge
authorJoerg Jaspert <joerg@debian.org>
Thu, 14 Jun 2012 11:48:55 +0000 (13:48 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 14 Jun 2012 11:48:55 +0000 (13:48 +0200)
* algernon/b/queue-report/byhand-trainee:
  queue-report: Also print unprocessed changes files
  queue_report: Ignore stuff without a source

Signed-off-by: Joerg Jaspert <joerg@debian.org>
dak/queue_report.py

index a3b59738df18c7c7d5b9e04d3719463b0582b15a..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:
@@ -383,6 +384,9 @@ def process_changes_files(changes_files, type, log, rrd_dir):
     # Divide the .changes into per-source groups
     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):
             per_source[source] = {}
@@ -601,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
 
 ################################################################################