Don't throw ewarns during prerm and postrm phases, as they might simply come out...
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 7 Jan 2007 00:41:55 +0000 (00:41 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 7 Jan 2007 00:41:55 +0000 (00:41 +0000)
eclass/debug.eclass

index f722005771796c250f8742cb763c9557d4b3377b..9c0512758f062bc5217196f3288b59aa80994236 100644 (file)
@@ -1,10 +1,12 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.34 2007/01/06 00:47:26 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/debug.eclass,v 1.35 2007/01/07 00:41:55 flameeyes Exp $
 
 # STOP USING THIS ECLASS
 # It was broken, and debug useflag should _not_ touch CFLAGS to start with.
 # See http://bugs.gentoo.org/show_bug.cgi?id=55708 for info about this
 # and http://www.gentoo.org/proj/en/qa/backtraces.xml to learn how to get
 # a debug build.
-ewarn "QA Notice: The package ${CATEGORY}/${PF} still uses the broken debug.eclass"
+if [[ ${EBUILD_PHASE} != *rm ]]; then
+       ewarn "QA Notice: The package ${CATEGORY}/${PF} still uses the broken debug.eclass"
+fi