summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2005-12-30 18:47:14 +0000
committerJohn Mylchreest <johnm@gentoo.org>2005-12-30 18:47:14 +0000
commit3d5f8ac5d54752bfb467bf7c51e9493364fe001f (patch)
treea52d9d2ce7a9f3eca274b5c9a964ec0d40e303fa /eclass/linux-info.eclass
parentFix #117216. (diff)
downloadhistorical-3d5f8ac5d54752bfb467bf7c51e9493364fe001f.tar.gz
historical-3d5f8ac5d54752bfb467bf7c51e9493364fe001f.tar.bz2
historical-3d5f8ac5d54752bfb467bf7c51e9493364fe001f.zip
Fixes bug #113142
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass11
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." \