index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-01-30 11:18:03 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-30 11:18:03 +0100 |
commit | a9d2ea413bc0b4ccbebd2da7a48a8c0dbaf2e676 (patch) | |
tree | 6f0c1e23e4671c1522bf518aa00a6663ae1d9cc9 /bin/copy-to-build-support | |
parent | 90750bad1b9337731f7ba45b7d4a15544b0e51f6 (diff) |
-rwxr-xr-x | bin/copy-to-build-support | 12 |
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support index 351a005..bb7e421 100755 --- a/bin/copy-to-build-support +++ b/bin/copy-to-build-support @@ -77,6 +77,18 @@ verbose_flock -s ${wait_for_lock} 9 exec 8> "${package_database_lock_file}" verbose_flock ${wait_for_lock} 8 +if [ -z "${wait_for_lock}" ]; then + while intentions_left; do + >&2 echo 'There are still intentions in the queue.' + sleep 1 + done +else + if intentions_left; then + >&2 echo 'come back (shortly) later - There are still intentions in the queue.' + exit 1 + fi +fi + tmp_dir=$(mktemp -d "${work_dir}/tmp.copy-to-build-support.0.XXXXXXXXXX") trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT |