From a9c806363fa6afd5a14bb41c72ef2991f9c3803c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 23 Nov 2017 00:14:30 +0100 Subject: add sub_pkgrel (starting from .0) to differentiate between multiple build attempts of otherwise identical packages (e.g. identical upstream source) --- bin/return-assignment | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/return-assignment') 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 -- cgit v1.2.3-54-g00ecf