summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-16 11:31:26 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-16 11:31:26 +0200
commit5fb45aaaa0c5c89687b753aa59647dfdf646d3da (patch)
treec934648c532d41065aaef27614da07995183349e
parentc938733e3659e69f0bcf19256cd8c6996c3fb132 (diff)
downloadjenkins.debian.net-5fb45aaaa0c5c89687b753aa59647dfdf646d3da.tar.xz
reproducible: only notifiy irc if there were packages scheduled in any suite
-rwxr-xr-xbin/reproducible_scheduler.py7
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__':