From: Zac Medico Date: Sat, 4 Aug 2007 07:28:03 +0000 (-0000) Subject: Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. ... X-Git-Tag: v2.1.3.9~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a4a271de933b80a0f174f7149fcdead55d1f95b6;p=portage.git Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist. (trunk r7550) svn path=/main/branches/2.1.2/; revision=7557 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 4da75c656..4a826a4f0 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -977,6 +977,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 @@ -1035,6 +1038,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}" @@ -1071,6 +1077,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}"