Fix diefunc() so that it doesn't report that the ebuild is from
authorZac Medico <zmedico@gentoo.org>
Wed, 31 Oct 2007 17:33:00 +0000 (17:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 31 Oct 2007 17:33:00 +0000 (17:33 -0000)
an overlay when EMERGE_FROM == binary.

svn path=/main/trunk/; revision=8349

bin/isolated-functions.sh

index 00f43d2d4ba57a129509c891a3686f5fee63e168..f471f8cae255bcf9631e63c4dba74fdabb4e517c 100755 (executable)
@@ -90,7 +90,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%/*}