[Qa-jenkins-scm] [jenkins.debian.net] 03/04: reproducible: fix logic bug affecting calculation of amount of packages to be rescheduled

Holger Levsen holger at moszumanska.debian.org
Sun Mar 15 11:27:31 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 d915ebec09debf8f5bbcdc9d63f5baea44e59f5d
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Mar 15 12:02:36 2015 +0100

    reproducible: fix logic bug affecting calculation of amount of packages to be rescheduled
---
 bin/reproducible_scheduler.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index f4bb616..9da0332 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('==============================================================')

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