summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-04 21:54:43 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-04 21:54:43 +0200
commit6f12137201bbd0995983894238b63a60f1861841 (patch)
treedd5e00b57aea7ac3da294759aa855553f1c45a0d
parent1ddf9264adb4d3f6d612882c1912208dd072c23f (diff)
downloadjenkins.debian.net-6f12137201bbd0995983894238b63a60f1861841.tar.xz
fixup 1ddf9264: reproducible: almost always schedule new versions, so that new uploads are processed quickly. i'd welcome a more elegant solution...
-rwxr-xr-xbin/reproducible_scheduler.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index be122836..5303112c 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...')