summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-22 13:25:34 +0100
committerErich Eckner <git@eckner.net>2018-03-22 13:25:34 +0100
commita10b2cb87acf9b654b8f88924411814c07752fda (patch)
tree2bfb1cabc2d675c91a1b86c3e68e0568fe0969d2 /bin/seed-build-list
parent72c62099827c6fb033cd3b35dd914f1a5e3d0f2b (diff)
downloadbuilder-a10b2cb87acf9b654b8f88924411814c07752fda.tar.xz
bin/seed-build-list: display error on failed lock
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index ef1ab62..e01349c 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -113,10 +113,16 @@ fi
# get locks
if ${update}; then
exec 9> "${sanity_check_lock_file}"
- flock -s ${wait_for_lock} 9
+ if ! flock -s ${wait_for_lock} 9; then
+ >&2 echo 'Cannot get sanity-check lock.'
+ exit 1
+ fi
exec 8> "${build_list_lock_file}"
- flock ${wait_for_lock} 8
+ if ! flock ${wait_for_lock} 8; then
+ >&2 echo 'Cannot get build-list lock.'
+ exit 1
+ fi
fi
repos="${stable_package_repositories}"