diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-29 01:24:42 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-02-29 01:24:42 +0000 |
commit | 2f75770abad7cdd1b3b23ad28dbc60292bd4d65b (patch) | |
tree | 870073bcaa20ba02e97efde51436429e7955705c /subr | |
parent | dda17d403570f1e9dc96246ec8ab5b1a6ea09728 (diff) | |
download | midipix_build-2f75770abad7cdd1b3b23ad28dbc60292bd4d65b.tar.bz2 midipix_build-2f75770abad7cdd1b3b23ad28dbc60292bd4d65b.tar.xz |
groups/dev_packages.group:${GROUP_AUTO}: set to 0.
subr/build_init.subr:buildp_init_vars(): don't include groups in ${_default_build_groups} if ${GROUP_AUTO} is set to 0.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/build_init.subr | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr index 321678a5..27af80da 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -212,7 +212,14 @@ buildp_init_vars() { else _fname="${_fname##*/}"; _fname="${_fname%.group}"; _target="${_fname#*.}"; fi; - _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")"; + if [ -n "${GROUP_AUTO}" ]; then + if [ "${GROUP_AUTO:-0}" -ne 0 ]; then + _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")"; + fi; + unset GROUP_AUTO; + else + _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")"; + fi; done; _default_build_groups="$(rtl_uniq "${_default_build_groups}")"; if ! rtl_lmatch "${ARG_DIST}" "rpm" ","; then |