summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 16:54:44 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 16:54:44 +0000
commit9b2d7590d360d8b07052635f058133f8737dd5af (patch)
treea98bfd993a7a711e2a348d1fcf7826c8c7cf7a32 /eclass
parentfix metadata.xml's maintainer entry (diff)
downloadgentoo-2-9b2d7590d360d8b07052635f058133f8737dd5af.tar.gz
gentoo-2-9b2d7590d360d8b07052635f058133f8737dd5af.tar.bz2
gentoo-2-9b2d7590d360d8b07052635f058133f8737dd5af.zip
touchup the kernel-2_hook_premake check so an error isnt shown when kernel-2_hook_premake() is not defined
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index bb46817d4b4b..acb5e89d9f9f 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.157 2006/01/27 00:28:27 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.158 2006/01/29 16:54:44 vapier Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -959,7 +959,7 @@ kernel-2_src_unpack() {
# allow ebuilds to massage the source tree after patching but before
# we run misc `make` functions below
- type kernel-2_hook_premake > /dev/null && kernel-2_hook_premake
+ [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake
[[ -z ${K_NOSETEXTRAVERSION} ]] && unpack_set_extraversion
unpack_fix_docbook