[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: scheduler: fix total counter

Holger Levsen holger at moszumanska.debian.org
Wed Jul 8 20:37:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 00383797c432658dab5eabfe837345206a40051e
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Wed Jul 8 20:36:25 2015 +0000

    reproducible: scheduler: fix total counter
---
 bin/reproducible_scheduler.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index dd5f6ab..7ffcd61 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -334,9 +334,8 @@ 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 ''
-    total = 0
-    total += [now_queued_here[x] for x in SUITES]
-    message += ', for ' + total + ' or ' + \
+    total = [now_queued_here[x] for x in SUITES]
+    message += ', for ' + str(sum(total)) + ' or ' + \
               '+'.join([str(now_queued_here[x]) for x in SUITES]) + ' packages in total.'
     log.info('\n\n\n')
     log.info(message)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list