summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-09-12 20:44:01 +0000
committerMichał Górny <mgorny@gentoo.org>2011-09-12 20:44:01 +0000
commitd3a79c72f85813ce41b0b7e6df83baf236e8a147 (patch)
tree3a6c4002ca21a6802a0096e061df598fbab0b126 /eclass/eutils.eclass
parentUse einfo to make .{la,a} removals more visible. (diff)
downloadgentoo-2-d3a79c72f85813ce41b0b7e6df83baf236e8a147.tar.gz
gentoo-2-d3a79c72f85813ce41b0b7e6df83baf236e8a147.tar.bz2
gentoo-2-d3a79c72f85813ce41b0b7e6df83baf236e8a147.zip
Rewrite eqawarn() to reuse PORTAGE_ELOG_CLASSES set by dev profile.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass9
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index d1b7c1908357..cd1f9ff17cec 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.362 2011/08/09 00:43:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.363 2011/09/12 20:44:01 mgorny Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -66,11 +66,12 @@ fi
# @FUNCTION: eqawarn
# @USAGE: [message]
# @DESCRIPTION:
-# Proxy to einfo for package managers that don't provide eqawarn and use the PM
-# implementation if available.
+# Proxy to ewarn for package managers that don't provide eqawarn and use the PM
+# implementation if available. Reuses PORTAGE_ELOG_CLASSES as set by the dev
+# profile.
if ! declare -F eqawarn >/dev/null ; then
eqawarn() {
- einfo "$@"
+ has qa ${PORTAGE_ELOG_CLASSES} && ewarn "$@"
}
fi