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-10-23 09:17:57 +0200
committerErich Eckner <git@eckner.net>2017-10-23 09:17:57 +0200
commit5259e9449e479069f3b2cb4a1919b46d189ee847 (patch)
tree19cca4f034b98501d0e087b5bd258d7bdb00b22a /bin
parent0ad4887c5db500e1118e1b6ecae1aec2a9ff3732 (diff)
bin/return-assignment: look, that the client actually got the assignment (not only that there is an assignment at all)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index ac642a5..27404df 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -46,6 +46,12 @@ if [ "$5" = 'ERROR' ]; then
exit 0
fi
+ # shellcheck disable=SC2154
+ if ! grep -xF "${slave}" "${work_dir}/package-states/$1.$2.$3.$4.locked"; then
+ # whoops, this package is built by someone else
+ exit 0
+ fi
+
# save sent build logs
tar -x \
-C "${build_log_directory}/error" \