From 196f004d57a260e3fbd27e614b079337c141b813 Mon Sep 17 00:00:00 2001 From: LucĂ­a Andrea Illanes Albornoz Date: Mar 31 2023 05:36:41 +0000 Subject: subr.ex/ex_pkg_exec.subr: pass @_dispatch_fn to exp_pkg_exec_pre(). --- diff --git a/subr.ex/ex_pkg_exec.subr b/subr.ex/ex_pkg_exec.subr index d64d815..e2b3ba0 100644 --- a/subr.ex/ex_pkg_exec.subr +++ b/subr.ex/ex_pkg_exec.subr @@ -5,6 +5,7 @@ # # exp_pkg_exec_pre() - prepare environment for single named package w/ dispatcher +# @_dispatch_fn: top-level dispatch function name # @_group_name: build group name # @_pkg_name: single package name # @_restart_at: optional comma-separated list of build steps at which to rebuild or ALL or LAST @@ -13,7 +14,8 @@ # Returns: zero (0) on success, non-zero (>0) on failure # exp_pkg_exec_pre() { - local _eppep_group_name="${1}" _eppep_pkg_name="${2}" _eppep_restart_at="${3}" _eppep_workdir="${4}"; + local _eppep_dispatch_fn="${1}" _eppep_group_name="${2}" _eppep_pkg_name="${3}" \ + _eppep_restart_at="${4}" _eppep_workdir="${5}"; if [ "${PKG_URL:+1}" != 1 ]\ && [ "${PKG_URLS_GIT:+1}" != 1 ]\ @@ -104,10 +106,11 @@ exp_pkg_exec() { _eppe_build_step_last="" _eppe_rc=0 _eppe_step=""; if ! exp_pkg_exec_pre \ + "${_eppe_dispatch_fn}" \ "${_eppe_group_name}" "${_eppe_pkg_name}" \ - "${_eppe_restart_at}" "${_eppe_workdir}"\ - || ! "${_eppe_dispatch_fn}" \ - start_pkg_child "${_eppe_group_name}" \ + "${_eppe_restart_at}" "${_eppe_workdir}" \ + || ! "${_eppe_dispatch_fn}" \ + start_pkg_child "${_eppe_group_name}" \ "${_eppe_pkg_name}"; then _eppe_rc=1;