summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-10-01 18:06:06 +0000
committerMichał Górny <mgorny@gentoo.org>2013-10-01 18:06:06 +0000
commita8dc0ec5b4eca8676eae9eeee42693a8f5b5d016 (patch)
tree93cd28746a1c9db9cbfa1fb6ef312261c164c798 /eclass/multilib-build.eclass
parentFix information disclosure vulnerability (CVE-2013-1881, bug #486600, thanks ... (diff)
downloadgentoo-2-a8dc0ec5b4eca8676eae9eeee42693a8f5b5d016.tar.gz
gentoo-2-a8dc0ec5b4eca8676eae9eeee42693a8f5b5d016.tar.bz2
gentoo-2-a8dc0ec5b4eca8676eae9eeee42693a8f5b5d016.zip
Clean up the splitting code wrt suggestions from Ulrich Mueller.
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r--eclass/multilib-build.eclass8
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