summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-10 04:29:58 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-10 04:29:58 +0000
commit106a0f096df367e7ad1b4915b7f4cf176f88b0be (patch)
tree634e9d8ccffd10c26f339836383036e2ad07b5bb /eclass/multilib.eclass
parentVersion bump. (diff)
downloadgentoo-2-106a0f096df367e7ad1b4915b7f4cf176f88b0be.tar.gz
gentoo-2-106a0f096df367e7ad1b4915b7f4cf176f88b0be.tar.bz2
gentoo-2-106a0f096df367e7ad1b4915b7f4cf176f88b0be.zip
is_final_abi: rewrite with bash arrays to simplify a bit
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass8
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