From 912971f958e21dcc80b53af611c0e0cec8454e57 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 15 Mar 2018 11:17:38 +0100 Subject: bin/modify-package-state: lock package database --- bin/modify-package-state | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/modify-package-state b/bin/modify-package-state index 9b0571b..6a6716f 100755 --- a/bin/modify-package-state +++ b/bin/modify-package-state @@ -128,6 +128,12 @@ if ! flock -s -n 9; then exit fi +exec 8> "${package_database_lock_file}" +if ! flock -n 8; then + >&2 echo 'Cannot get package-database lock.' + exit +fi + while read -r package reason; do case "${action}" in 'faulty'|'tested') -- cgit v1.2.3-70-g09d2