summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-09-06 23:12:29 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-09-06 23:12:29 +0000
commitcb853b16aaeff6f47c112cb7e991cc37d8bb9954 (patch)
tree00444e6829d28da6cb6d51c7b1b4ff84fdf0745c /eclass/linux-info.eclass
parentRemove unused patch. (diff)
downloadgentoo-2-cb853b16aaeff6f47c112cb7e991cc37d8bb9954.tar.gz
gentoo-2-cb853b16aaeff6f47c112cb7e991cc37d8bb9954.tar.bz2
gentoo-2-cb853b16aaeff6f47c112cb7e991cc37d8bb9954.zip
Bug 283320: Fix minor typo for config.gz. Improve ewarn output, more migration.
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index c33e808bce78..1e4be54c282e 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.63 2009/09/06 23:04:37 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.64 2009/09/06 23:12:29 robbat2 Exp $
#
# Original author: John Mylchreest <johnm@gentoo.org>
# Maintainer: kernel-misc@gentoo.org
@@ -202,7 +202,7 @@ getfilevar_noexec() {
[ -z "${1}" ] && ERROR=1
[ ! -f "${2}" ] && ERROR=1
- [ "${2#.gz}" != "${2}" ] && mycat='zcat'
+ [ "${2%.gz}" != "${2}" ] && mycat='zcat'
if [ "${ERROR}" = 1 ]
then
@@ -625,7 +625,8 @@ check_extra_config() {
# code later will cause a failure due to missing .config.
if ! linux_config_exists; then
ewarn "Unable to check for the following kernel config options due"
- ewarn "to absence of any configured kernel sources:"
+ ewarn "to absence of any configured kernel sources or compiled"
+ ewarn "config:"
for config in ${CONFIG_CHECK}; do
ewarn " - ${config#\~}"
done
@@ -633,7 +634,7 @@ check_extra_config() {
return 0
fi
else
- require_configured_kernel
+ [ -n "${I_KNOW_WHAT_I_AM_DOING}" ] && require_configured_kernel
fi
einfo "Checking for suitable kernel configuration options..."