From 3d5df6ff9aacb3a1529dc0a81142db303a5a1aae Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 2 Jun 2017 14:07:35 +0200 Subject: bin/get-assignment: write slave identifier to lock file instead of ip --- bin/get-assignment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2