From aae4b0f5b4fae609a9dd2fb11e99d5f1b7965c34 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 25 Nov 2017 15:39:31 +0100 Subject: bin/return-assignment: be more verbose in case of error; exit with 2 on wrongly sent package --- bin/return-assignment | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2