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/get-assignment | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/get-assignment') diff --git a/bin/get-assignment b/bin/get-assignment index cb6f48e..607f826 100755 --- a/bin/get-assignment +++ b/bin/get-assignment @@ -19,6 +19,11 @@ mkdir -p "${work_dir}/package-states" hand_out_assignment() { + # find out the sub_pkgrel + sub_pkgrel=$( + next_sub_pkgrel "$1" "$2" "$3" "$4" + ) + # we don't care anymore if an older version of this package was # "locked" or "broken" find "${work_dir}/package-states" -maxdepth 1 -regextype grep \ @@ -35,7 +40,7 @@ hand_out_assignment() { $ a '"$1 $2 $3 $4" \ "${work_dir}/build-list" - echo "$1 $2 $3 $4" + echo "$1 $2 $3 $4 ${sub_pkgrel}" # shellcheck disable=SC2154 echo "${slave}" >> \ "${work_dir}/package-states/$1.$2.$3.$4.locked" -- cgit v1.2.3-70-g09d2