Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-11 12:22:44 +0200
committerErich Eckner <git@eckner.net>2018-10-11 12:22:44 +0200
commit3adbb835b224fa8b6f93332b3d0592233cd031d2 (patch)
treed11e13603dccb34c0d5e16e481e20c509abc7cad /bin
parent9736f4060b7739f300e20c4d09a1779f4e507436 (diff)
bin/return-assignment: clean up report of missing packages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index e15c471..1c8426e 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -529,11 +529,16 @@ package_errors=$(
if [ -n "${package_errors}" ]; then
>&2 echo 'The following packages should have been built but are missing or vice versa:'
- printf '/j %s Your buildslave "%s" uploaded the wrong package(s):\n' \
- "${operator}" "${slave}" | \
+ >&2 printf '%s\n' "${package_errors}"
+ {
+ printf 'Your buildslave "%s" uploaded the wrong package(s):\n' \
+ "${slave}"
+ printf '%s\n' "${package_errors}"
+ } | \
+ sed '
+ s@^@/j '"${operator}"' @
+ ' | \
sponge "${irc_dir}/in"
- printf '%s\n' "${package_errors}" | \
- irc_say "${operator}" 'copy' >&2
exit 4
fi