From 36ee6162e1911cb52fcfd21936763ede7c6f548a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 16 Jun 2023 10:48:52 +0200 Subject: build-support -n should also stop now when do-not-run-build-slave exists --- bin/build-packages | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/build-packages') diff --git a/bin/build-packages b/bin/build-packages index 7a5a541..fd9e448 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -195,6 +195,14 @@ checksum=$( while [ "${count}" -ne 0 ] && \ [ "$(calculate_script_checksum)" = "${checksum}" ]; do + if [ -f '/tmp/do-not-run-build-slave' ]; then + >&2 echo 'build slave is on halt.' + >&2 echo 'I will terminate the loop and stop now.' + # non-zero exit code to signal systemctl that the process should not + # be restarted automatically + exit 1 + fi + if [ "${timeout}" -ne 0 ] && [ "${timeout}" -lt "$(date +%s)" ]; then break -- cgit v1.2.3-54-g00ecf