[Qa-jenkins-scm] [jenkins.debian.net] 03/03: refactor
Holger Levsen
holger at moszumanska.debian.org
Mon Sep 7 00:04:34 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 4ab568ef4182afa80be1b64ef54105d7d5152bee
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Sep 7 02:04:01 2015 +0200
refactor
---
bin/reproducible_scheduler.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 596f7c2..86073ec 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -285,13 +285,13 @@ def schedule_packages(packages):
conn_db.commit()
-def add_up_numbers(package_type, arch):
- package_type_sum = '+'.join([str(len(package_type[x])) for x in SUITES])
- if package_type_sum == '0+0+0':
- package_type_sum = '0'
+def add_up_numbers(packages, arch):
+ packages_sum = '+'.join([str(len(packages[x])) for x in SUITES])
+ if packages_sum == '0+0+0':
+ packages_sum = '0'
elif arch == 'armhf':
- package_type_sum = str(len(package_type['unstable']))
- return package_type_sum
+ packages_sum = str(len(packages['unstable']))
+ return packages_sum
def query_untested_packages(suite, arch, limit):
--
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