From d915ebec09debf8f5bbcdc9d63f5baea44e59f5d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 15 Mar 2015 12:02:36 +0100 Subject: 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(-) (limited to 'bin') 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('==============================================================') -- cgit v1.2.3-70-g09d2