summaryrefslogtreecommitdiff
path: root/bin/get-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/get-assignment
parentbfc69b2cd5b771b6483c6e9b95ea36f6f9d82cda (diff)
downloadbuilder-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/get-assignment')
-rwxr-xr-xbin/get-assignment7
1 files changed, 6 insertions, 1 deletions
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"