From: Zac Medico Date: Fri, 3 Aug 2007 08:41:44 +0000 (-0000) Subject: Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. X-Git-Tag: v2.2_pre1~907 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e3155e16536d3ea0b5891770b7e86d4a0de25c3;p=portage.git Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. svn path=/main/trunk/; revision=7550 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f0667fda6..69ed01cd2 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -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}"