From 5fe9ee97e9800b982854e3212107f7d50e0b6aa9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 09:31:12 +0100 Subject: bin/return-assignment: ignore error report, if package is not on the build list anymore, too --- bin/return-assignment | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/return-assignment b/bin/return-assignment index f01e295..6961507 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -47,7 +47,8 @@ trap clean_up_lock_file EXIT if [ "$5" = 'ERROR' ]; then # the build failed on the build slave - if [ ! -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; 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 exit 0 fi -- cgit v1.2.3-70-g09d2