Add eqawarn
authorPetteri Räty <betelgeuse@gentoo.org>
Sun, 11 Jul 2010 17:29:10 +0000 (17:29 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sun, 11 Jul 2010 17:29:10 +0000 (17:29 +0000)
eclass/eutils.eclass

index c7696e949ac156a51eb01c3c26c4eb0a9fa69bb4..5a9692402a0d68de0e99318210e6340c1be76573 100644 (file)
@@ -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: