summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2010-07-11 17:29:10 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2010-07-11 17:29:10 +0000
commit6faf2c19e44ff91135ca1410534ac08a4ec0e545 (patch)
treefa27278d96cadedfaa686e9d493c7e7a961f93fa /eclass/eutils.eclass
parentsparc/x86 stable wrt #325161 (diff)
downloadgentoo-2-6faf2c19e44ff91135ca1410534ac08a4ec0e545.tar.gz
gentoo-2-6faf2c19e44ff91135ca1410534ac08a4ec0e545.tar.bz2
gentoo-2-6faf2c19e44ff91135ca1410534ac08a4ec0e545.zip
Add eqawarn
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index c7696e949ac1..5a9692402a0d 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -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.347 2010/07/10 09:52:47 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.348 2010/07/11 17:29:10 betelgeuse Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -63,6 +63,17 @@ epause() {
fi
+# @FUNCTION: eqawarn
+# @USAGE: [message]
+# @DESCRIPTION:
+# Proxy to einfo for package managers that don't provide eqawarn and use the PM
+# implementation if available.
+if ! declare -F eqawarn >/dev/null ; then
+ eqawarn() {
+ einfo "$@"
+ }
+fi
+
# @FUNCTION: ecvs_clean
# @USAGE: [list of dirs]
# @DESCRIPTION: