Gentoo Archives: gentoo-commits

From: "Petteri Raty (betelgeuse)" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: eutils.eclass
Date: Wed, 17 Feb 2010 17:10:27
Message-Id: E1NhnPs-0005k4-0v@stork.gentoo.org
1 betelgeuse 10/02/17 17:10:24
2
3 Modified: eutils.eclass
4 Log:
5 Check if eqawarn is defined before calling it.
6
7 Revision Changes Path
8 1.333 eclass/eutils.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?rev=1.333&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?rev=1.333&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?r1=1.332&r2=1.333
13
14 Index: eutils.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
17 retrieving revision 1.332
18 retrieving revision 1.333
19 diff -u -r1.332 -r1.333
20 --- eutils.eclass 17 Feb 2010 02:22:43 -0000 1.332
21 +++ eutils.eclass 17 Feb 2010 17:10:23 -0000 1.333
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2009 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.332 2010/02/17 02:22:43 reavertm Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.333 2010/02/17 17:10:23 betelgeuse Exp $
27
28 # @ECLASS: eutils.eclass
29 # @MAINTAINER:
30 @@ -54,11 +54,13 @@
31 else
32
33 ebeep() {
34 - eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
35 + [[ $(type -t eqawarn) == function ]] && \
36 + eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
37 }
38
39 epause() {
40 - eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
41 + [[ $(type -t eqawarn) == function ]] && \
42 + eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
43 }
44
45 fi