[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible Debian: make sure that empty messages are actually really empty strings to avoid contentless mails later

Holger Levsen holger at layer-acht.org
Fri Sep 29 09:27:36 UTC 2017


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 d5c392ae4f32efea7628acee3488b680340c0268
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Sep 29 11:27:31 2017 +0200

    reproducible Debian: make sure that empty messages are actually really empty strings to avoid contentless mails later
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_scheduler.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index bdd1eb3..a6d17a4 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

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