Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/modify-package-state6
1 files changed, 6 insertions, 0 deletions
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')