summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Guertin <gerk@gentoo.org>2003-02-04 23:11:27 +0000
committerMark Guertin <gerk@gentoo.org>2003-02-04 23:11:27 +0000
commitc66917ae7ed865605afac126d3150d4bb969fde8 (patch)
tree553f3b18c165efb234dc6204c4266c6a84054df4 /eclass/kernel.eclass
parentset as -ppc for testing (diff)
downloadhistorical-c66917ae7ed865605afac126d3150d4bb969fde8.tar.gz
historical-c66917ae7ed865605afac126d3150d4bb969fde8.tar.bz2
historical-c66917ae7ed865605afac126d3150d4bb969fde8.zip
added sanity check for ETYPE being set
Diffstat (limited to 'eclass/kernel.eclass')
-rw-r--r--eclass/kernel.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass
index 84f5f3f1a1c8..f2c91e1ada75 100644
--- a/eclass/kernel.eclass
+++ b/eclass/kernel.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.15 2003/01/09 23:02:21 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.16 2003/02/04 23:11:27 gerk Exp $
# This eclass contains the common functions to be used by all lostlogic
# based kernel ebuilds
@@ -17,6 +17,12 @@ PROVIDE="virtual/linux-sources"
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
LICENSE="GPL-2"
+# removes superficial bug if ETYPE is not set, and saves debugging time ;) - Gerk
+if [ -z "${ETYPE}" ] ; then
+ eerror "Please set ETYPE!"
+ die
+fi
+
if [ $ETYPE = "sources" ]
then
#console-tools is needed to solve the loadkeys fiasco; binutils version needed to avoid Athlon/PIII/SSE assembler bugs.