From d6282e95dddf610b61a9f9ef735c902ec6891772 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 19 Sep 2015 09:56:04 +0200 Subject: reproducible: only log scheduled packages if there are any --- bin/reproducible_scheduler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_scheduler.py') 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}) -- cgit v1.2.3-70-g09d2