Replace eqawarn with ewarn - as it's present in all EAPIs
authorMaciej Mrozowski <reavertm@gentoo.org>
Tue, 2 Mar 2010 00:52:26 +0000 (00:52 +0000)
committerMaciej Mrozowski <reavertm@gentoo.org>
Tue, 2 Mar 2010 00:52:26 +0000 (00:52 +0000)
eclass/eutils.eclass

index a9515725748d2a2cd5be793ea80250a9a2207c3c..9e251802dfc72cafc1b7c453b80382872ccba33e 100644 (file)
@@ -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.336 2010/02/26 05:33:57 abcd Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.337 2010/03/02 00:52:26 reavertm Exp $
 
 # @ECLASS: eutils.eclass
 # @MAINTAINER:
@@ -54,13 +54,11 @@ ebeep() {
 else
 
 ebeep() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+       ewarn "QA Notice: ebeep is not defined in EAPI=${EAPI}, please file a bug at http://bugs.gentoo.org"
 }
 
 epause() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+       ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please file a bug at http://bugs.gentoo.org"
 }
 
 fi