# 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:
# @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