diff options
-rwxr-xr-x | bin/build-packages | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages index 6d69ac1..e32269d 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -328,7 +328,9 @@ while [ "${count}" -ne 0 ] && \ fi cd "${base_dir}" recursively_umount_and_rm "${tmp_dir}" - flock -u 9 || true + if [ -z "${forced_package}" ]; then + flock -u 9 || true + fi exit "${err}" } find "${work_dir}" \ @@ -357,7 +359,9 @@ while [ "${count}" -ne 0 ] && \ 'return-assignment' 'ABORT' recursively_umount_and_rm "${tmp_dir}" - flock -u 9 || true + if [ -z "${forced_package}" ]; then + flock -u 9 || true + fi trap - EXIT continue fi @@ -880,7 +884,9 @@ while [ "${count}" -ne 0 ] && \ # clean up tmp_dir cd "${base_dir}" recursively_umount_and_rm "${tmp_dir}" - flock -u 9 || true + if [ -z "${forced_package}" ]; then + flock -u 9 || true + fi trap - EXIT continue |