Use globing to match *rm phases from the last commit.
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Oct 2006 06:51:57 +0000 (06:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Oct 2006 06:51:57 +0000 (06:51 -0000)
svn path=/main/trunk/; revision=4701

bin/ebuild.sh

index c61feea5124f666ec7a9b1973f079c4aa8e9da83..9e96451ff9d09804f93966a6a95e00035546e726 100755 (executable)
@@ -1169,9 +1169,7 @@ inherit() {
                export ECLASS="$1"
 
                if [ "${EBUILD_PHASE}" != "depend" ] && \
-                       [ ${EBUILD_PHASE} != "cleanrm" ] && \
-                       [ ${EBUILD_PHASE} != "prerm" ] && \
-                       [ ${EBUILD_PHASE} != "postrm" ]; then
+                       [[ ${EBUILD_PHASE} != *rm ]]; 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.