diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-10-01 18:06:06 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-10-01 18:06:06 +0000 |
commit | d97249144458880a00a29d4cadc2fa78509cd728 (patch) | |
tree | 1288a8cec03719217e44b5ed9af4bea09d212f4c /eclass/multilib-build.eclass | |
parent | Fix information disclosure vulnerability (CVE-2013-1881, bug #486600, thanks ... (diff) | |
download | historical-d97249144458880a00a29d4cadc2fa78509cd728.tar.gz historical-d97249144458880a00a29d4cadc2fa78509cd728.tar.bz2 historical-d97249144458880a00a29d4cadc2fa78509cd728.zip |
Clean up the splitting code wrt suggestions from Ulrich Mueller.
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r-- | eclass/multilib-build.eclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index 140bea6d6097..fa5948900df3 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.22 2013/10/01 17:42:38 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.23 2013/10/01 18:06:06 mgorny Exp $ # @ECLASS: multilib-build.eclass # @MAINTAINER: @@ -80,10 +80,8 @@ multilib_get_enabled_abis() { # split on ,; we can't switch IFS for function scope because # paludis is broken (bug #486592), and switching it locally - # for the split is more complex than tricking like this - m_abis=( ${m_abis/,/ } ) - - for m_abi in ${m_abis[@]}; do + # for the split is more complex than cheating like this + for m_abi in ${m_abis//,/ }; do if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then echo "${abi}" found=1 |