summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-09 15:52:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-09 15:52:08 +0200
commitef4b587d9d8561d689450c3a7ca945bac97e346d (patch)
tree04c48cde25ffc4d6cc7a33b42f242579aabe59a7 /bin
parent4380f583f92ad38da1c7443d1cd2cd6f3ebbd2d5 (diff)
downloadjenkins.debian.net-ef4b587d9d8561d689450c3a7ca945bac97e346d.tar.xz
reproducible: shorten irc message
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_remote_scheduler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py
index 002eb329..fd120433 100755
--- a/bin/reproducible_remote_scheduler.py
+++ b/bin/reproducible_remote_scheduler.py
@@ -185,13 +185,13 @@ for pkg in packages:
pkgs.append(pkg)
blablabla = '✂…' if len(' '.join(pkgs)) > 257 else ''
-packages_txt = ' packages ' if len(pkgs) > 1 else ' package '
+packages_txt = str(len(ids)) ' packages ' if len(pkgs) > 1 else ''
trailing = ' - artifacts will be preserved' if artifacts else ''
trailing += ' - with irc notification' if notify else ''
trailing += ' - notify on start too' if debug_url else ''
-message = str(len(ids)) + packages_txt + 'scheduled in ' + suite + '/' + \
- arch + ' by ' + requester
+message = requester + ' scheduled ' + packages_txt + \
+ 'in ' + suite + '/' + arch
if reason:
message += ', reason: \'' + reason + '\''
message += ': ' + ' '.join(pkgs)[0:256] + blablabla + trailing