summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-10 01:10:47 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-10 01:10:47 +0000
commite1e036ca755d5b89fb059bb5d66fad9b973a21da (patch)
treedce2ed1e4c62fdfa763f8a0f7dbc851bc3775a30
parentb6956463bf86dc9324ab1dc9cf16e4f8928c1629 (diff)
downloadportage-e1e036ca755d5b89fb059bb5d66fad9b973a21da.tar.gz
portage-e1e036ca755d5b89fb059bb5d66fad9b973a21da.tar.bz2
portage-e1e036ca755d5b89fb059bb5d66fad9b973a21da.zip
Remove pointless `cd` calls in dyn_configure() and dyn_compile().
svn path=/main/trunk/; revision=11380
-rwxr-xr-xbin/ebuild.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 67f0d3aca..704148ef3 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -872,10 +872,9 @@ dyn_configure() {
vecho ">>> Configuring source in $srcdir ..."
ebuild_phase src_configure
+ touch "$PORTAGE_BUILDDIR"/.configured
vecho ">>> Source configured."
- #|| abort_configure "fail"
- cd "$PORTAGE_BUILDDIR"
- touch .configured
+
[[ $(type -t post_src_configure) = function ]] && \
qa_call post_src_configure
@@ -897,10 +896,9 @@ dyn_compile() {
vecho ">>> Compiling source in ${srcdir} ..."
ebuild_phase src_compile
+ touch "$PORTAGE_BUILDDIR"/.compiled
vecho ">>> Source compiled."
- #|| abort_compile "fail"
- cd "${PORTAGE_BUILDDIR}"
- touch .compiled
+
[ "$(type -t post_src_compile)" == "function" ] && qa_call post_src_compile
trap SIGINT SIGQUIT