summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-02-17 17:10:23 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2010-02-17 17:10:23 +0000
commitf36ab61c155576edb0567c76468caadece13db8c (patch)
tree2946d8750c477161a3ac7b7b16da14a8c77c4317 /eclass/eutils.eclass
parentSlightly update grass ebuild. Synced with sci overlay + whitespace cleanup. (diff)
downloadgentoo-2-f36ab61c155576edb0567c76468caadece13db8c.tar.gz
gentoo-2-f36ab61c155576edb0567c76468caadece13db8c.tar.bz2
gentoo-2-f36ab61c155576edb0567c76468caadece13db8c.zip
Check if eqawarn is defined before calling it.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index ad18859d9396..17893be10e58 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.332 2010/02/17 02:22:43 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.333 2010/02/17 17:10:23 betelgeuse Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -54,11 +54,13 @@ ebeep() {
else
ebeep() {
- eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+ [[ $(type -t eqawarn) == function ]] && \
+ eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
}
epause() {
- eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+ [[ $(type -t eqawarn) == function ]] && \
+ eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
}
fi