[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: fix a bunch of type errors

Holger Levsen holger at moszumanska.debian.org
Thu Mar 5 17:22:41 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 6975844a5e3b977061dee34c6cbee86058733001
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Mar 5 18:20:18 2015 +0100

    reproducible: fix a bunch of type errors
---
 bin/reproducible_scheduler.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 1b3198f..a2ffbb6 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:

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