summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-03 08:41:44 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-03 08:41:44 +0000
commit4e3155e16536d3ea0b5891770b7e86d4a0de25c3 (patch)
tree811cfbbc632bc2850386390a4c6f16d2d3e6f7b3
parenta3f9506f2f577a08a122b20953af66f39e91716f (diff)
downloadportage-4e3155e16536d3ea0b5891770b7e86d4a0de25c3.tar.gz
portage-4e3155e16536d3ea0b5891770b7e86d4a0de25c3.tar.bz2
portage-4e3155e16536d3ea0b5891770b7e86d4a0de25c3.zip
Generate a QA Notice and cd to ${WORKDIR} if the ${S} directory does not exist.
svn path=/main/trunk/; revision=7550
-rwxr-xr-xbin/ebuild.sh9
1 files changed, 9 insertions, 0 deletions
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}"