summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-19 09:56:04 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-19 09:56:04 +0200
commitd6282e95dddf610b61a9f9ef735c902ec6891772 (patch)
tree610bcbb823480862d81df579ce33bd9cf42601ce /bin
parente2c766d218f85c0ebb86104213a84f388b694693 (diff)
downloadjenkins.debian.net-d6282e95dddf610b61a9f9ef735c902ec6891772.tar.xz
reproducible: only log scheduled packages if there are any
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 48c45525..667e536e 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -287,7 +287,8 @@ def print_schedule_result(suite, criteria, packages):
def queue_packages(all_pkgs, packages, date):
date = date.strftime('%Y-%m-%d %H:%M')
pkgs = [x for x in packages if x[0] not in all_pkgs]
- log.info('The following ' + str(len(pkgs)) + ' source packages have ' +
+ if len(pkgs) > 0:
+ log.info('The following ' + str(len(pkgs)) + ' source packages have ' +
'been queued up for scheduling at ' + date + ': ' +
' '.join([str(x[1]) for x in pkgs]))
all_pkgs.update({x[0]: date for x in pkgs})