index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-02 14:07:35 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-02 14:07:35 +0200 |
commit | 3d5df6ff9aacb3a1529dc0a81142db303a5a1aae (patch) | |
tree | a6f9b51b3142f7c3472ddd14378b405c716f71f5 /bin | |
parent | de8e004cdefb9f908c72bef3f19635a7e7708aae (diff) |
-rwxr-xr-x | bin/get-assignment | 4 |
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 |