diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-10 04:29:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-10 04:29:58 +0000 |
commit | c9de7825e7d90699f77f580150d037d453054b92 (patch) | |
tree | 7331081918ddf1b2f64d7e98d811d2530c654151 /eclass/multilib.eclass | |
parent | Version bump. (diff) | |
download | historical-c9de7825e7d90699f77f580150d037d453054b92.tar.gz historical-c9de7825e7d90699f77f580150d037d453054b92.tar.bz2 historical-c9de7825e7d90699f77f580150d037d453054b92.zip |
is_final_abi: rewrite with bash arrays to simplify a bit
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r-- | eclass/multilib.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index 0a8a7ebef855..cd28a909b501 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.82 2011/03/10 04:26:38 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.83 2011/03/10 04:29:58 vapier Exp $ # @ECLASS: multilib.eclass # @MAINTAINER: @@ -255,9 +255,9 @@ get_all_libdirs() { # if we're in the last (or only) run through src_{unpack,compile,install} is_final_abi() { has_multilib_profile || return 0 - local ALL_ABIS=$(get_install_abis) - local LAST_ABI=${ALL_ABIS/* /} - [[ ${LAST_ABI} == ${ABI} ]] + set -- $(get_install_abis) + local LAST_ABI=$# + [[ ${!LAST_ABI} == ${ABI} ]] } # @FUNCTION: number_abis |