summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-07 02:04:01 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-07 02:04:01 +0200
commit4ab568ef4182afa80be1b64ef54105d7d5152bee (patch)
treed49b829ac705404cbf0b30ccc3b01d79c5b9c6c6 /bin
parentd40779c14ef1aa13c39b1efd2acb69d4a0dc763b (diff)
downloadjenkins.debian.net-4ab568ef4182afa80be1b64ef54105d7d5152bee.tar.xz
refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 596f7c2b..86073ec0 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):