diff options
author | Erich Eckner <git@eckner.net> | 2017-11-23 00:14:30 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-23 00:14:30 +0100 |
commit | a9c806363fa6afd5a14bb41c72ef2991f9c3803c (patch) | |
tree | 13705e9c83c03ab9b1a69df79e75e4eebe8f8bbe /bin/return-assignment | |
parent | bfc69b2cd5b771b6483c6e9b95ea36f6f9d82cda (diff) | |
download | builder-a9c806363fa6afd5a14bb41c72ef2991f9c3803c.tar.xz |
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-x | bin/return-assignment | 3 |
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 |