Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: eutils.eclass
Date: Mon, 12 Sep 2011 20:44:11
Message-Id: 20110912204402.0E9A12004C@flycatcher.gentoo.org
1 mgorny 11/09/12 20:44:02
2
3 Modified: eutils.eclass
4 Log:
5 Rewrite eqawarn() to reuse PORTAGE_ELOG_CLASSES set by dev profile.
6
7 Revision Changes Path
8 1.363 eclass/eutils.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.363&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.363&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.362&r2=1.363
13
14 Index: eutils.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
17 retrieving revision 1.362
18 retrieving revision 1.363
19 diff -u -r1.362 -r1.363
20 --- eutils.eclass 9 Aug 2011 00:43:48 -0000 1.362
21 +++ eutils.eclass 12 Sep 2011 20:44:01 -0000 1.363
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 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.362 2011/08/09 00:43:48 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.363 2011/09/12 20:44:01 mgorny Exp $
27
28 # @ECLASS: eutils.eclass
29 # @MAINTAINER:
30 @@ -66,11 +66,12 @@
31 # @FUNCTION: eqawarn
32 # @USAGE: [message]
33 # @DESCRIPTION:
34 -# Proxy to einfo for package managers that don't provide eqawarn and use the PM
35 -# implementation if available.
36 +# Proxy to ewarn for package managers that don't provide eqawarn and use the PM
37 +# implementation if available. Reuses PORTAGE_ELOG_CLASSES as set by the dev
38 +# profile.
39 if ! declare -F eqawarn >/dev/null ; then
40 eqawarn() {
41 - einfo "$@"
42 + has qa ${PORTAGE_ELOG_CLASSES} && ewarn "$@"
43 }
44 fi