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/return-assignment | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/return-assignment') diff --git a/bin/return-assignment b/bin/return-assignment index ec1673a..6517be2 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -546,6 +546,11 @@ if ! verbose_flock -w 20 7; then exit 1 fi +if intentions_left; then + >&2 echo 'come back (shortly) later - There are still intentions in the queue.' + exit 1 +fi + # shellcheck disable=SC2016 build_assignment_id=$( { -- cgit v1.2.3