diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-09-16 06:40:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-09-16 06:40:21 +0000 |
commit | 8b613500d4f98640b5bdfba4414749cf57eab544 (patch) | |
tree | a97eacde887e0b38622e84044a2a60afc196cfb8 /eclass/toolchain-funcs.eclass | |
parent | Version bump in a new SLOT (diff) | |
download | historical-8b613500d4f98640b5bdfba4414749cf57eab544.tar.gz historical-8b613500d4f98640b5bdfba4414749cf57eab544.tar.bz2 historical-8b613500d4f98640b5bdfba4414749cf57eab544.zip |
tc-export: make sure the variable requested for export is a valid variable
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 4afbc5d72726..1de8eaec052d 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.78 2008/07/03 05:26:47 dberkholz Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.79 2008/09/16 06:40:21 vapier Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -116,6 +116,7 @@ tc-getBUILD_CC() { tc-export() { local var for var in "$@" ; do + [[ $(type -t tc-get${var}) != "function" ]] && die "tc-export: invalid export variable '${var}'" eval tc-get${var} > /dev/null done } |