diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-12-30 18:47:14 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-12-30 18:47:14 +0000 |
commit | 0c7bfbb8268a0322affaac9a512aa36f8e1798e5 (patch) | |
tree | 791a45fa362c754bd0d387ee61563f080c706e32 /eclass | |
parent | Fix #117216. (diff) | |
download | gentoo-2-0c7bfbb8268a0322affaac9a512aa36f8e1798e5.tar.gz gentoo-2-0c7bfbb8268a0322affaac9a512aa36f8e1798e5.tar.bz2 gentoo-2-0c7bfbb8268a0322affaac9a512aa36f8e1798e5.zip |
Fixes bug #113142
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-info.eclass | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 4bc73af867fb..be97c4ea0e19 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.34 2005/12/30 18:36:39 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.35 2005/12/30 18:47:14 johnm Exp $ # # Description: This eclass is used as a central eclass for accessing kernel # related information for sources already installed. @@ -425,8 +425,15 @@ check_extra_config() { eend ${error} else if [[ ${error} > 0 ]]; then - local_error="${config}_ERROR" + local_error="ERROR_${config}" local_error="${!local_error}" + + if [[ -z "${local_error}" ]]; then + # using old, deprecated format. + local_error="${config}_ERROR" + local_error="${!local_error}" + fi + if [[ -z "${local_error}" ]]; then [[ ${error} == 1 ]] \ && local_error="is not set when it should be." \ |