Disable the ECLASS inherited illegally message during *rm phases since it gives false...
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Oct 2006 06:40:33 +0000 (06:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Oct 2006 06:40:33 +0000 (06:40 -0000)
svn path=/main/trunk/; revision=4700

bin/ebuild.sh

index 48a457a8f768df0a48bf66a08e51b95296e3e0b8..c61feea5124f666ec7a9b1973f079c4aa8e9da83 100755 (executable)
@@ -1168,7 +1168,13 @@ inherit() {
                PECLASS="$ECLASS"
                export ECLASS="$1"
 
-               if [ "$EBUILD_PHASE" != "depend" ]; then
+               if [ "${EBUILD_PHASE}" != "depend" ] && \
+                       [ ${EBUILD_PHASE} != "cleanrm" ] && \
+                       [ ${EBUILD_PHASE} != "prerm" ] && \
+                       [ ${EBUILD_PHASE} != "postrm" ]; then
+                       # This is disabled in the *rm phases because they frequently give
+                       # false alarms due to INHERITED in /var/db/pkg being outdated
+                       # in comparison the the eclasses from the portage tree.
                        if ! hasq $ECLASS $INHERITED; then
                                vecho
                                vecho "QA Notice: ECLASS '$ECLASS' inherited illegally in $CATEGORY/$PF" >&2