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/bootstrap-mysql | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/bootstrap-mysql') diff --git a/bin/bootstrap-mysql b/bin/bootstrap-mysql index a1c23be..cf055f7 100755 --- a/bin/bootstrap-mysql +++ b/bin/bootstrap-mysql @@ -20,6 +20,10 @@ if ! verbose_flock -s -n 7; then >&2 echo 'Cannot get package-database lock.' exit 1 fi +if intentions_left; then + >&2 echo 'There are still intentions in the queue.' + exit 1 +fi #shellcheck disable=SC2016 { -- cgit v1.2.3