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>2023-06-11 18:32:44 +0200
committerErich Eckner <git@eckner.net>2023-06-11 18:32:44 +0200
commit60fd162d7b33a33a9c4c1a22a3b2a1f9298327e1 (patch)
tree06545aafb53d2b7d346d42e55cfcc6bdb9422579 /bin
parent9665eb96a1fa29af67bc63afa6be2fc579882a5f (diff)
lock on a file in $tmp_dir
* so we can run the script multiple times in parallel without needing to clone the repository
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 70f785a..7a5a541 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -360,14 +360,14 @@ while [ "${count}" -ne 0 ] && \
cd "${tmp_dir}"
echo 'nothing' > "${tmp_dir}/.ping-build-master"
if [ -z "${forced_package}" ]; then
- # we get a lock on "${work_dir}/ping-build-master.lock",
+ # we get a lock on "${tmp_dir}/ping-build-master.lock",
# if we release that lock, ping-to-master should stop _immediately_
- exec 9> "${work_dir}/ping-build-master.lock"
+ exec 9> "${tmp_dir}/ping-build-master.lock"
if ! verbose_flock -n 9; then
>&2 echo 'ERROR: Cannot lock ping-to-master - this should not happen.'
exit 2
fi
- "${base_dir}/bin/ping-to-master" "$$" "${tmp_dir}" "${work_dir}/ping-build-master.lock" &
+ "${base_dir}/bin/ping-to-master" "$$" "${tmp_dir}" "${tmp_dir}/ping-build-master.lock" &
fi
success=false