From 8cae5b9f43c812b0a73f9a298beb957790f69873 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Apr 09 2020 20:43:54 +0000 Subject: build.sh:buildp_ast(): remove ${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME} at last opportunity. --- diff --git a/build.sh b/build.sh index 1588b27..eadd41a 100755 --- a/build.sh +++ b/build.sh @@ -7,9 +7,6 @@ buildp_ast() { if [ "${_param}" = "abort" ]; then rtl_log_msg fatalexit "Build aborted."; fi; - if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then - rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}"; - fi; while [ "${_pids_niter}" -lt 8 ]; do _pids="$(rtl_lconcat "${_pids}" "${RTL_KILL_TREE_PIDS}")"; RTL_KILL_TREE_PIDS=""; if ! rtl_kill_tree "${$}" "TERM"\ @@ -28,6 +25,9 @@ buildp_ast() { done; rtl_log_msg notice "Reset package state for: %s" "${EX_PKG_DISPATCH_WAIT}"; fi; + if [ -n "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}" ]; then + rtl_fileop rm "${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME}"; + fi; }; buildp_dispatch_fail_pkg() {