Skip bogus '$ECLASS inherited illegally' messages when installing from a binary package.
authorZac Medico <zmedico@gentoo.org>
Sat, 9 Jun 2007 04:45:57 +0000 (04:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 9 Jun 2007 04:45:57 +0000 (04:45 -0000)
svn path=/main/trunk/; revision=6775

bin/ebuild.sh

index ea1cd829094496d33eed16fbcf6971edfaf81b15..fcfbe5430cc42dd9b90c4ea50d936871a2ef9ea5 100755 (executable)
@@ -1145,7 +1145,8 @@ inherit() {
                export ECLASS="$1"
 
                if [ "${EBUILD_PHASE}" != "depend" ] && \
-                       [[ ${EBUILD_PHASE} != *rm ]]; then
+                       [[ ${EBUILD_PHASE} != *rm ]] && \
+                       [[ ${EMERGE_FROM} != "binary" ]] ; 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.