From 60fd162d7b33a33a9c4c1a22a3b2a1f9298327e1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 11 Jun 2023 18:32:44 +0200 Subject: lock on a file in $tmp_dir * so we can run the script multiple times in parallel without needing to clone the repository --- bin/build-packages | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/build-packages') 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 -- cgit v1.2.3-70-g09d2