From: Gergely Nagy Date: Thu, 14 Jun 2012 08:14:43 +0000 (+0000) Subject: queue-report: Also print unprocessed changes files X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2941ea05e05d4c2abb645f118bf2341656450db8;p=dak.git 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 --- diff --git a/dak/queue_report.py b/dak/queue_report.py index dba38769..9de1f545 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 ################################################################################