summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/deps.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 3f54386..853e55b 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -174,8 +174,7 @@ ob_parse_dep()
ob_reduce_deps()
{
_ob_local _obrd_opt _obrd_host_arch _obrd_host_plat _obrd_deps \
- _obrd_orig_ifs _obrd_dep_and _obrd_dep_or \
- _obrd_dep_list _obrd_dep_or_list _obrd_dep
+ _obrd_dep_and _obrd_dep_or _obrd_dep_list _obrd_dep_or_list _obrd_dep
_obrd_union='false'
@@ -205,15 +204,14 @@ ob_reduce_deps()
return ${?}
fi
- _obrd_orig_ifs="${IFS}"
IFS=','
for _obrd_dep_and in ${_obrd_deps}; do
- IFS="${_obrd_orig_ifs}"
+ unset IFS
if ! ${_obrd_union}; then
IFS='|'
_obrd_dep_or_list=
for _obrd_dep_or in ${_obrd_dep_and}; do
- IFS="${_obrd_orig_ifs}"
+ unset IFS
_obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \
-P "${_obrd_host_plat}" "${_obrd_dep_or}")"
if [ -n "${_obrd_dep}" ]; then
@@ -240,6 +238,7 @@ ob_reduce_deps()
fi
fi
done
+ unset IFS
echo "${_obrd_dep_list}"