Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-assignment10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index 607f826..f755204 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -41,9 +41,13 @@ hand_out_assignment() {
"${work_dir}/build-list"
echo "$1 $2 $3 $4 ${sub_pkgrel}"
- # shellcheck disable=SC2154
- echo "${slave}" >> \
- "${work_dir}/package-states/$1.$2.$3.$4.locked"
+ {
+ # shellcheck disable=SC2154
+ echo "${slave}"
+ cat "${work_dir}/package-states/$1.$2.$3.$4.locked"
+ } | \
+ sort -u | \
+ sponge "${work_dir}/package-states/$1.$2.$3.$4.locked"
# lock every loop this package breaks
find "${work_dir}/build-list.loops" -maxdepth 1 -regextype grep \