From d5c392ae4f32efea7628acee3488b680340c0268 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 29 Sep 2017 11:27:31 +0200 Subject: reproducible Debian: make sure that empty messages are actually really empty strings to avoid contentless mails later Signed-off-by: Holger Levsen --- bin/reproducible_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2