Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist.
authorZac Medico <zmedico@gentoo.org>
Fri, 3 Aug 2007 08:41:44 +0000 (08:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 3 Aug 2007 08:41:44 +0000 (08:41 -0000)
svn path=/main/trunk/; revision=7550

bin/ebuild.sh

index f0667fda66678ab278fd493fb4851e1fc2270f25..69ed01cd2b1ce9eb7c2d7e2840f07de5990188ed 100755 (executable)
@@ -899,6 +899,9 @@ dyn_compile() {
        if [ -d "${S}" ]; then
                srcdir=${S}
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        #our custom version of libtool uses $S and $D to fix
        #invalid paths in .la files
@@ -957,6 +960,9 @@ dyn_test() {
        trap "abort_test" SIGINT SIGQUIT
        if [ -d "${S}" ]; then
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        if ! hasq test $FEATURES && [ "${EBUILD_FORCE_TEST}" != "1" ]; then
                vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
@@ -993,6 +999,9 @@ dyn_install() {
        mkdir "${PORTAGE_BUILDDIR}/image"
        if [ -d "${S}" ]; then
                cd "${S}"
+       else
+               eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+               cd "${WORKDIR}"
        fi
        vecho
        vecho ">>> Install ${PF} into ${D} category ${CATEGORY}"