summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-09-29 11:27:31 +0200
committerHolger Levsen <holger@layer-acht.org>2017-09-29 11:27:31 +0200
commitd5c392ae4f32efea7628acee3488b680340c0268 (patch)
treef6942d7058d3d9246b8d3bcc9ba9c00905bfd90e /bin
parentfa43fbaba54014c26bb9bf28381bb49981742ebe (diff)
downloadjenkins.debian.net-d5c392ae4f32efea7628acee3488b680340c0268.tar.xz
reproducible Debian: make sure that empty messages are actually really empty strings to avoid contentless mails later
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index bdd1eb3b..a6d17a4e 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -747,7 +747,7 @@ def scheduler(arch):
# only notifiy if there were packages scheduled in any suite
for x in SUITES:
if len(untested[x])+len(new[x])+len(old[x])+len(old_ftbfs[x])+len(old_depwait[x]) > 0:
- return message
+ return message + '\n'
return ''
if __name__ == '__main__':
@@ -768,7 +768,7 @@ if __name__ == '__main__':
continue
log.info('%s packages already scheduled for %s, probably scheduling some '
'more...', overall, arch)
- message += scheduler(arch) + '\n'
+ message += scheduler(arch)
log.info('Arch %s scheduled at %s.', arch, datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
if message != '':
# build the kgb message text