Fix diefunc() so that it doesn't report that the ebuild is from
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 07:18:43 +0000 (07:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 07:18:43 +0000 (07:18 -0000)
an overlay when EMERGE_FROM == binary. (trunk r8349)

svn path=/main/branches/2.1.2/; revision=8375

bin/ebuild.sh

index c434c9ba2352426653ad2d71abaa523298f7375f..df3078f771b5d2f792469f002fd6da15cee4437a 100755 (executable)
@@ -333,7 +333,8 @@ diefunc() {
                        eerror "  ${x}"
                done
        fi
-       if [[ "${EBUILD#${PORTDIR}/}" == "${EBUILD}" ]] ; then
+       if [ "${EMERGE_FROM}" != "binary" ] && \
+               [ "${EBUILD#${PORTDIR}/}" == "${EBUILD}" ] ; then
                local overlay=${EBUILD%/*}
                overlay=${overlay%/*}
                overlay=${overlay%/*}