From 4e3155e16536d3ea0b5891770b7e86d4a0de25c3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 3 Aug 2007 08:41:44 +0000 Subject: [PATCH] Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. svn path=/main/trunk/; revision=7550 --- bin/ebuild.sh | 9 +++++++++ 1 file changed, 9 insertions(+) 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}" -- 2.26.2