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>2017-11-25 15:39:31 +0100
committerErich Eckner <git@eckner.net>2017-11-25 15:39:31 +0100
commitaae4b0f5b4fae609a9dd2fb11e99d5f1b7965c34 (patch)
tree8cec98bd6012c2ba2ca13bb0f6c54ef938bf1ddc /bin
parente8b458299102bc6e7eacc33ca6121b1528f746df (diff)
bin/return-assignment: be more verbose in case of error; exit with 2 on wrongly sent package
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 582294e..64d16d0 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -49,14 +49,14 @@ if [ "$5" = 'ERROR' ]; then
if ! grep -qxF "$1 $2 $3 $4" "${work_dir}/build-list" ||
! [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; then
- # too late, package already outdated -> ignore error report
+ >&2 echo 'Too late, package already outdated, I ignore this error report.'
exit 2
fi
# shellcheck disable=SC2154
if ! grep -qxF "${slave}" "${work_dir}/package-states/$1.$2.$3.$4.locked"; then
- # whoops, this package is not built by this slave
- exit 0
+ >&2 echo 'You do not build this package - move on.'
+ exit 2
fi
# save sent build logs