summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-15 12:02:36 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-15 12:24:57 +0100
commitd915ebec09debf8f5bbcdc9d63f5baea44e59f5d (patch)
tree32eca146918352d84032170f45c2b486b19953b6 /bin
parent243d7fdac173df2d4290f6540ce9f2df0bcb4afb (diff)
downloadjenkins.debian.net-d915ebec09debf8f5bbcdc9d63f5baea44e59f5d.tar.xz
reproducible: fix logic bug affecting calculation of amount of packages to be rescheduled
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index f4bb616c..9da0332d 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -255,9 +255,11 @@ def scheduler():
many_old = 1 # ...
for suite in SUITES:
if suite != 'experimental':
- many_old = many_old*10 # experimental is roughly one tenth of the size of the other suites
- log.info('Requesting ' + str(many_old) + ' old packages in ' + suite + '...')
- old[suite] = scheduler_old_versions(suite, many_old)
+ suite_many_old = many_old*10 # experimental is roughly one tenth of the size of the other suites
+ else:
+ suite_many_old = many_old
+ log.info('Requesting ' + str(suite_many_old) + ' old packages in ' + suite + '...')
+ old[suite] = scheduler_old_versions(suite, suite_many_old)
total += len(old[suite])
log.info('Received ' + str(len(old[suite])) + ' old packages in ' + suite + ' to schedule.')
log.info('==============================================================')