[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: only notifiy irc if there were packages scheduled in any suite

Holger Levsen holger at moszumanska.debian.org
Sat May 16 09:31:43 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 5fb45aaaa0c5c89687b753aa59647dfdf646d3da
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat May 16 11:31:26 2015 +0200

    reproducible: only notifiy irc if there were packages scheduled in any suite
---
 bin/reproducible_scheduler.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index fec9e09..2554ed6 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -297,10 +297,13 @@ def scheduler():
               '+'.join([str(len(old[x])) for x in SUITES]) + ' old packages with the same version, ' + \
               'for ' + str(total) + ' or ' + \
               '+'.join([str(now_queued_here[x]) for x in SUITES]) + ' packages in total.'
-    log.info(message)
-    irc_msg(message)
     log.info('\n\n\n')
     log.info(message)
+    # only notifiy irc if there were packages scheduled in any suite
+    for x in SUITES:
+        if len(untested[x])+len(new[x])+len(old[x]) > 0:
+            irc_msg(message)
+            break
 
 
 if __name__ == '__main__':

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