diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-08-10 01:10:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-08-10 01:10:47 +0000 |
commit | e1e036ca755d5b89fb059bb5d66fad9b973a21da (patch) | |
tree | dce2ed1e4c62fdfa763f8a0f7dbc851bc3775a30 | |
parent | b6956463bf86dc9324ab1dc9cf16e4f8928c1629 (diff) | |
download | portage-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-x | bin/ebuild.sh | 10 |
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 |