Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-14 14:19:24 +0200
committerErich Eckner <git@eckner.net>2017-06-14 14:25:42 +0200
commit83a72072f11a4fe04fb93fe294e06926671f6673 (patch)
treee9fc53a82a085cf28c6bf338f821fbfbfb98a8f4
parentfe9acfd30ea146693ba418837d8a29e876f2fcf5 (diff)
bin/return-assignment: reject packages without lock file
-rwxr-xr-xbin/return-assignment3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index ea2f09b..40f5b1c 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -77,7 +77,8 @@ fi
# the build was successful on the build slave
-if ! grep -q "^${1//./\\.} $2 $3 $4\$" "${work_dir}/build-list"; then
+if ! grep -q "^${1//./\\.} $2 $3 $4\$" "${work_dir}/build-list" ||
+ ! [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; then
>&2 echo 'Sorry, the sent package is outdated.'
exit 2
fi