Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-02 14:07:35 +0200
committerErich Eckner <git@eckner.net>2017-06-02 14:07:35 +0200
commit3d5df6ff9aacb3a1529dc0a81142db303a5a1aae (patch)
treea6f9b51b3142f7c3472ddd14378b405c716f71f5 /bin
parentde8e004cdefb9f908c72bef3f19635a7e7708aae (diff)
bin/get-assignment: write slave identifier to lock file instead of ip
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-assignment4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index 8ac77a3..dd4faf2 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -29,7 +29,7 @@ hand_out_assignment() {
fi
echo "$1 $2 $3 $4"
- echo "${SSH_CLIENT%% *}" > "${work_dir}/package-states/$1.$2.$3.$4.locked"
+ echo "${slave}" > "${work_dir}/package-states/$1.$2.$3.$4.locked"
# lock every loop this package breaks
grep "^${1//./\\.}\$" "${work_dir}/build-list.loops/"loop_* | \
@@ -66,7 +66,7 @@ while read -r package git_revision mod_git_revision repository; do
if [ -f "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked" ];
then
- if [ "${SSH_CLIENT%% *}" = "$(head -n1 "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked")" ]; then
+ if [ "${slave}" = "$(head -n1 "${work_dir}/package-states/${package}.${git_revision}.${mod_git_revision}.${repository}.locked")" ]; then
num_jobs=$[${num_jobs}+1];
fi
else