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-05-31 11:34:37 +0200
committerErich Eckner <git@eckner.net>2017-05-31 11:34:37 +0200
commit2422d79d69ab18580c36364fe8816e01eee426d1 (patch)
tree88322d2ab12f648bc2cf010ae6338c1ae0ce4d7e /bin
parent67fba32a01a1942e03eb1ba00f2a597ed11edfea (diff)
bin/return-assignment: return 0 if error reported and package outdated
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment5
1 files changed, 5 insertions, 0 deletions
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