diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.sh | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/package.sh b/lib/package.sh index 3476e56..72ffd63 100644 --- a/lib/package.sh +++ b/lib/package.sh @@ -195,17 +195,14 @@ ob_get_binary_packages() _obgbpk_pkgs='' - if [ -n "${_obgbpk_host_arch}" ]; then - for _obgbpk_pkg in ${_OB_BINARY_PACKAGES}; do - if ob_arch_is_concerned "${_obgbpk_host_arch}" \ - "$(ob_get_binary_parameter \ - "${_obgbpk_pkg}" 'Architecture')"; then - _obgbpk_pkgs="${_obgbpk_pkgs} ${_obgbpk_pkg}" - fi - done - else - _obgbpk_pkgs="${_OB_BINARY_PACKAGES}" - fi + for _obgbpk_pkg in ${_OB_BINARY_PACKAGES}; do + if [ -n "${_obgbpk_host_arch}" ] && ! ob_arch_is_concerned \ + "${_obgbpk_host_arch}" "$(ob_get_binary_parameter \ + "${_obgbpk_pkg}" 'Architecture')"; then + continue + fi + _obgbpk_pkgs="${_obgbpk_pkgs} ${_obgbpk_pkg}" + done IFS=' ' echo ${_obgbpk_pkgs} |