[Qa-jenkins-scm] [jenkins.debian.net] 02/04: reproducible: only log scheduled packages if there are any

Holger Levsen holger at moszumanska.debian.org
Sat Sep 19 08:19:25 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 d6282e95dddf610b61a9f9ef735c902ec6891772
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Sep 19 09:56:04 2015 +0200

    reproducible: only log scheduled packages if there are any
---
 bin/reproducible_scheduler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 48c4552..667e536 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})

-- 
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