From a9d2ea413bc0b4ccbebd2da7a48a8c0dbaf2e676 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 30 Jan 2020 11:18:03 +0100 Subject: check intentions_left() whenever we get a package_database_lock --- bin/db-update | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/db-update') diff --git a/bin/db-update b/bin/db-update index 51114f0..26d2d36 100755 --- a/bin/db-update +++ b/bin/db-update @@ -175,6 +175,11 @@ if ! ${no_action}; then exit 0 fi + if intentions_left; then + >&2 echo 'come back (shortly) later - There are still intentions in the queue.' + exit 0 + fi + exec 8> "${sanity_check_lock_file}" if ! verbose_flock -s ${block_flag} 8; then >&2 echo 'come back (shortly) later - sanity-check currently running.' -- cgit v1.2.3