summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-30 11:18:03 +0100
committerErich Eckner <git@eckner.net>2020-01-30 11:18:03 +0100
commita9d2ea413bc0b4ccbebd2da7a48a8c0dbaf2e676 (patch)
tree6f0c1e23e4671c1522bf518aa00a6663ae1d9cc9 /bin/db-update
parent90750bad1b9337731f7ba45b7d4a15544b0e51f6 (diff)
downloadbuilder-a9d2ea413bc0b4ccbebd2da7a48a8c0dbaf2e676.tar.xz
check intentions_left() whenever we get a package_database_lock
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update5
1 files changed, 5 insertions, 0 deletions
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.'