diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-16 11:31:26 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-16 11:31:26 +0200 |
commit | 5fb45aaaa0c5c89687b753aa59647dfdf646d3da (patch) | |
tree | c934648c532d41065aaef27614da07995183349e | |
parent | c938733e3659e69f0bcf19256cd8c6996c3fb132 (diff) | |
download | jenkins.debian.net-5fb45aaaa0c5c89687b753aa59647dfdf646d3da.tar.xz |
reproducible: only notifiy irc if there were packages scheduled in any suite
-rwxr-xr-x | bin/reproducible_scheduler.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index fec9e09e..2554ed6d 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__': |