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

[dak/master] dak/queue_report.py: variables are also used in 'else' branch



---
 dak/queue_report.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dak/queue_report.py b/dak/queue_report.py
index 8152bfa..2b501ac 100755
--- a/dak/queue_report.py
+++ b/dak/queue_report.py
@@ -552,9 +552,10 @@ def process_queue(queue, log, rrd_dir):
             log.write("Changes-File: " + os.path.basename(changes_file) + "\n")
             log.write("\n")
 
+    total_count = len(queue.uploads)
+    source_count = len(per_source_items)
+
     if Cnf.has_key("Queue-Report::Options::New"):
-        total_count = len(queue.uploads)
-        source_count = len(per_source_items)
         direction.append([5,1,"ao"])
         entries.sort(lambda x, y: sortfunc(x, y))
     # Output for a html file. First table header. then table_footer.
-- 
1.7.2.5


Reply to: