Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-23 00:14:30 +0100
committerErich Eckner <git@eckner.net>2017-11-23 00:14:30 +0100
commita9c806363fa6afd5a14bb41c72ef2991f9c3803c (patch)
tree13705e9c83c03ab9b1a69df79e75e4eebe8f8bbe /bin/return-assignment
parentbfc69b2cd5b771b6483c6e9b95ea36f6f9d82cda (diff)
add sub_pkgrel (starting from .0) to differentiate between multiple build attempts of otherwise identical packages (e.g. identical upstream source)
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 18a4cf4..865f1fd 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -123,7 +123,8 @@ clean_up_lock_file() {
}
if ! grep -qxF "$1 $2 $3 $4" "${work_dir}/build-list" ||
- ! [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ]; then
+ ! [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] ||
+ ! [ "$5" = "$(next_sub_pkgrel "$1" "$2" "$3" "$4")" ]; then
>&2 echo 'Sorry, the sent package is outdated.'
exit 2
fi