From 8d532f1366905b8af4e79fc7bf15f4b7ff633da2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 9 Jul 2023 19:25:22 +0200 Subject: bin/get-package-updates: less strict locking * Do not lock build list, so builders can get jobs. * This may lead to builders getting for jobs, that are currently overwritten or deleted. This should not be worse than if the builder got the job before running get-package-updates, though. --- bin/get-package-updates | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/get-package-updates b/bin/get-package-updates index 32d1f07..f79b097 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -265,18 +265,9 @@ if ${pull} && \ exit fi -# Create a lock file for build list. - -exec 9> "${build_list_lock_file}" -# shellcheck disable=SC2086 -if ! verbose_flock ${block_flag} 9; then - >&2 echo 'come back (shortly) later - I cannot lock build list.' - exit -fi - -exec 8> "${sanity_check_lock_file}" +exec 9> "${sanity_check_lock_file}" # shellcheck disable=SC2086 -if ! verbose_flock -s ${block_flag} 8; then +if ! verbose_flock -s ${block_flag} 9; then >&2 echo 'come back (shortly) later - sanity-check running.' exit fi -- cgit v1.2.3-70-g09d2