[Qa-jenkins-scm] [jenkins.debian.net] 01/01: fixup 1ddf9264: reproducible: almost always schedule new versions, so that new uploads are processed quickly. i'd welcome a more elegant solution...

Holger Levsen holger at moszumanska.debian.org
Fri Sep 4 19:55:13 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 6f12137201bbd0995983894238b63a60f1861841
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Sep 4 21:54:43 2015 +0200

    fixup 1ddf9264: reproducible: almost always schedule new versions, so that new uploads are processed quickly. i'd welcome a more elegant solution...
---
 bin/reproducible_scheduler.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index be12283..5303112 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -445,10 +445,13 @@ def scheduler(arch):
         generate_schedule()  # from reproducible_html_indexes
         log.info(str(total) + ' packages already scheduled' +
                  ', only scheduling new versions.')
-        untested, msg_untested = 0, 0
+        empty_pkgs = {}
+        for suite in SUITES:
+            empty_pkgs[suite] = []
+        untested, msg_untested = empty_pkgs, ''
         new, msg_new  = schedule_new_versions(arch, total)
-        old_ftbfs, msg_old_ftbfs  = 0 ,0
-        old, msg_old  = 0, 0
+        old_ftbfs, msg_old_ftbfs  = empty_pkgs, ''
+        old, msg_old  = empty_pkgs, ''
     else:
         log.info(str(total) + ' packages already scheduled' +
                  ', scheduling some more...')

-- 
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