From bd701840d583dd96d190c25c34c46b1c9e0885df Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 6 Mar 2015 20:32:16 +0100 Subject: reproducible: scheduler: tweak the final message to print also how many pacakges are now scheduled for that suite --- bin/reproducible_scheduler.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 8f19b17e..dbebb7ae 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -254,18 +254,19 @@ def scheduler(): for suite in SUITES: all_scheduled_pkgs = [] + all_scheduled_pkgs.extend(untested[suite]) + all_scheduled_pkgs.extend(new[suite]) + all_scheduled_pkgs.extend(old[suite]) # build the final message text - message = 'Scheduled in ' + suite + ':' + str(len(untested[suite])) + ' untested packages, ' + \ - str(len(new[suite])) + ' packages with new versions and ' + \ - str(len(old[suite])) + ' with the same version (total: ' + \ - str(total)+')' + message = 'Scheduled in ' + suite + ': ' + \ + str(len(untested[suite])) + ' untested packages, ' + \ + str(len(new[suite])) + ' packages with new versions and ' + \ + str(len(old[suite])) + ' with the same version ' + \ + '(total: ' + str(total) + ' of which ' + \ + str(len(all_scheduled_pkgs)) + ' in ' + suite + ')' kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf', '--relay-msg'] kgb.extend(message.split()) - # schedule... - all_scheduled_pkgs.extend(untested[suite]) - all_scheduled_pkgs.extend(new[suite]) - all_scheduled_pkgs.extend(old[suite]) # finally schedule_packages(all_scheduled_pkgs) call(kgb) -- cgit v1.2.3-70-g09d2