summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-05 18:20:18 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-05 18:20:18 +0100
commit6975844a5e3b977061dee34c6cbee86058733001 (patch)
tree0161e33c4cbc1153d415d47d9264af611fe37599
parenteb52e618b3887e0aca3327ad3ae7f2800228cf5f (diff)
downloadjenkins.debian.net-6975844a5e3b977061dee34c6cbee86058733001.tar.xz
reproducible: fix a bunch of type errors
-rwxr-xr-xbin/reproducible_scheduler.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 1b3198fa..a2ffbb64 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -213,15 +213,15 @@ def scheduler():
log.info(str(total) + ' packages already scheduled' +
', scheduling some more...')
# untested packages
- untested = []
+ untested = {}
for suite in SUITES:
log.info('Requesting 200 untested packages...')
untested[suite] = scheduler_untested_packages(suite, 200)
total += len(untested[suite])
- log.info('About to schedule ' + len(untested[suite]) + ' untested packages in ' + suite + '.')
+ log.info('About to schedule ' + str(len(untested[suite])) + ' untested packages in ' + suite + '.')
# packages with new versions
- new = []
+ new = {}
if total <= 250:
many_new = 50
elif total <= 450:
@@ -232,10 +232,10 @@ def scheduler():
for suite in SUITES:
new[suite] = scheduler_new_versions(suite, many_new)
total += len(new[suite])
- log.info('About to schedule ' + len(new[suite]) + ' new packages in ' + suite + '.')
+ log.info('About to schedule ' + str(len(new[suite])) + ' new packages in ' + suite + '.')
# old packages
- old = []
+ old = {}
if total <= 250:
many_old = 20
elif total <= 350:
@@ -245,8 +245,8 @@ def scheduler():
log.info('Requesting ' + str(many_old) + ' old packages...')
for suite in SUITES:
old[suite] = scheduler_old_versions(suite, many_old)
- total += len(old[old])
- log.info('About to schedule ' + len(old[suite]) + ' old packages in ' + suite + '.')
+ total += len(old[suite])
+ log.info('About to schedule ' + str(len(old[suite])) + ' old packages in ' + suite + '.')
all_scheduled_pkgs = []
for suite in SUITES: