summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2024-04-25 19:14:29 +0200
committerLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2024-04-25 19:14:29 +0200
commit7196a9933ac8094fefeeed91f358684cbfd67ef6 (patch)
treed7eb926b3ff16e615e0a4bc0e86a95e1997a46b4
parent1fd37e627bfd7c6755a6fdfce4bbb70f19d56cd0 (diff)
downloadmidipix_build-7196a9933ac8094fefeeed91f358684cbfd67ef6.tar.bz2
midipix_build-7196a9933ac8094fefeeed91f358684cbfd67ef6.tar.xz
subr.ex/ex_pkg.subr:ex_pkg_check_depends(): remove unnecessary rtl_uniq() call on dependencies.
-rw-r--r--subr.ex/ex_pkg.subr17
1 files changed, 3 insertions, 14 deletions
diff --git a/subr.ex/ex_pkg.subr b/subr.ex/ex_pkg.subr
index 2e86c319..97d5ea0b 100644
--- a/subr.ex/ex_pkg.subr
+++ b/subr.ex/ex_pkg.subr
@@ -3,7 +3,6 @@
# set +o errexit -o noglob -o nounset is assumed.
#
-
#
# ex_pkg_check_depends() - check single named package for unsatisfied dependencies
# @_checkfl: enable (1) or inhibit (0) dependency expansion
@@ -14,25 +13,15 @@
# @_workdir: pathname to build-specific temporary directory
#
# Returns: zero (0) given no outstanding dependencies, non-zero (>0) otherwise
-# Side effects: ${PKG_${_PKG_NAME}_DEPENDS_FULL} may be mutated
#
ex_pkg_check_depends() {
local _epcd_checkfl="${1}" _epcd_rpkg_disabled="${2}" _epcd_rpkg_finished="${3#\$}" \
_epcd_pkg_name="${4}" _epcd_rpkg_names="${5#\$}" _epcd_workdir="${6}" \
_epcd_dependfl=0 _epcd_depends="" _epcd_pkg_name_depend="";
- if [ "${_epcd_checkfl}" -eq 1 ]; then
- if ! rtl_get_var_unsafe \$_epcd_depends -u "PKG_"${_epcd_pkg_name}"_DEPENDS_FULL"\
- || [ "${_epcd_depends:+1}" != 1 ];
- then
- if rtl_get_var_unsafe \$_epcd_depends -u "PKG_"${_epcd_pkg_name}"_DEPENDS";
- then
- eval PKG_"${_epcd_pkg_name}"_DEPENDS_FULL='$(rtl_uniq ${_epcd_depends})';
- else
- return 0;
- fi;
- fi;
-
+ if [ "${_epcd_checkfl}" -eq 1 ]\
+ && rtl_get_var_unsafe \$_epcd_depends -u "PKG_"${_epcd_pkg_name}"_DEPENDS"\
+ && [ "${_epcd_depends:+1}" = 1 ]; then
for _epcd_pkg_name_depend in ${_epcd_depends}; do
if ! rtl_lmatch "${_epcd_rpkg_disabled}" "${_epcd_pkg_name_depend}"\
&& ! ex_pkg_state_test2 "${_epcd_workdir}" "${_epcd_pkg_name_depend}" finish;