From 8cae5b9f43c812b0a73f9a298beb957790f69873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 9 Apr 2020 21:43:54 +0100 Subject: build.sh:buildp_ast(): remove ${DEFAULT_BUILD_STATUS_IN_PROGRESS_FNAME} at last opportunity. --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 1588b279..eadd41ac 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() { -- cgit v1.2.3