summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-08 21:57:32 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-08 21:57:32 +0200
commit48980c81d8d2ec5f6f79372dbe19e0666168f61d (patch)
treeed1bc54eae5f9345629761ed00eb2271435cee4a
parent5dd24f5fc5e527ae5d171476bdf5b539f9dc4668 (diff)
downloadjenkins.debian.net-48980c81d8d2ec5f6f79372dbe19e0666168f61d.tar.xz
reproducible: correctly calculate total amount of packages
-rwxr-xr-xbin/reproducible_scheduler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index b2fcb11f..dd5f6abb 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -334,7 +334,9 @@ def scheduler():
message += msg_new if msg_new else ''
message += ' and ' if msg_untested or msg_old and msg_untested else ''
message += msg_old if msg_old else ''
- message += ', for ' + str(total) + ' or ' + \
+ total = 0
+ total += [now_queued_here[x] for x in SUITES]
+ message += ', for ' + total + ' or ' + \
'+'.join([str(now_queued_here[x]) for x in SUITES]) + ' packages in total.'
log.info('\n\n\n')
log.info(message)