From 2422d79d69ab18580c36364fe8816e01eee426d1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 31 May 2017 11:34:37 +0200 Subject: bin/return-assignment: return 0 if error reported and package outdated --- bin/return-assignment | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 308e9a0..e65bcfa 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -37,6 +37,11 @@ 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 + # too late, package already outdated -> ignore error report + exit 0 + fi + mv "${work_dir}/package-states/$1.$2.$3.$4."{locked,broken} # unlock every loop this package would have broken and which is not -- cgit v1.2.3-70-g09d2