diff options
author | Erich Eckner <git@eckner.net> | 2017-11-25 15:39:31 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-25 15:39:31 +0100 |
commit | aae4b0f5b4fae609a9dd2fb11e99d5f1b7965c34 (patch) | |
tree | 8cec98bd6012c2ba2ca13bb0f6c54ef938bf1ddc /bin/return-assignment | |
parent | e8b458299102bc6e7eacc33ca6121b1528f746df (diff) | |
download | builder-aae4b0f5b4fae609a9dd2fb11e99d5f1b7965c34.tar.xz |
bin/return-assignment: be more verbose in case of error; exit with 2 on wrongly sent package
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-x | bin/return-assignment | 6 |
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 |