From b376ae8e9202fd6c73b8c8ef4f547c9ec1a33cd1 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Jan 19 2019 19:35:39 +0000 Subject: build.sh:buildp_dispatch(): fix ${PKGS_FOUND} variable name. --- diff --git a/build.sh b/build.sh index d8c6d9c..2a6d25b 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ buildp_dispatch() { local _msg="${1}" _pkg_name="${2}" _tgt_name="${3}" \ - _build_tgt_meta="" _build_tgt_lc="" _build_tgts_lc=""_pkg_restart="" _pkgs_found=""; + _build_tgt_meta="" _build_tgt_lc="" _build_tgts_lc=""_pkg_restart="" PKGS_FOUND; case "${_msg}" in # Top-level start_build) shift; build_args "${@}"; build_init; @@ -15,17 +15,18 @@ buildp_dispatch() { if ! ex_rtl_lmatch "${ARG_DIST}" , rpm; then _build_tgts_lc="$(ex_rtl_lfilter_not "${_build_tgts_lc}" "host_tools_rpm")"; fi; + PKGS_FOUND=""; for _build_tgt_lc in ${_build_tgts_lc}; do ex_pkg_dispatch "${_build_tgt_lc}" \ "${ARG_RESTART}" "${ARG_RESTART_AT}" \ - buildp_dispatch _pkgs_found; + buildp_dispatch PKGS_FOUND; if [ ${?} -ne 0 ]; then break; fi; done; for _pkg_restart in ${ARG_RESTART}; do if ! ex_rtl_lmatch "ALL LAST" " " "${_pkg_restart}" \ - && ! ex_rtl_lmatch "${_pkgs_found}" " " "${_pkg_restart}"; then + && ! ex_rtl_lmatch "${PKGS_FOUND}" " " "${_pkg_restart}"; then ex_rtl_log_msg failexit "Error: package \`${_pkg_restart}' unknown."; fi; done;