summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-03 23:06:12 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-03 23:06:12 +0000
commit9a5da554ea82ff3ab5ae6e359d86b981bd1467b1 (patch)
treed4bfe06cd28b02a9105b435d075d42c263e215f2 /bin
parentc33dfe4afda0b3f688a05870d966ab088b5c87c4 (diff)
downloadportage-9a5da554ea82ff3ab5ae6e359d86b981bd1467b1.tar.gz
portage-9a5da554ea82ff3ab5ae6e359d86b981bd1467b1.tar.bz2
portage-9a5da554ea82ff3ab5ae6e359d86b981bd1467b1.zip
Synchronize the conditional that triggers "${T}"/environment
generation with the conditional that triggers distcc and ccache FEATURES setup. svn path=/main/trunk/; revision=8833
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f4de63b15..6ea534de4 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1475,9 +1475,8 @@ preprocess_ebuild_env() {
# === === === === === functions end, main part begins === === === === ===
# === === === === === === === === === === === === === === === === === ===
-if [[ ${EBUILD_SH_ARGS} != "depend" ]] && [[ ${EBUILD_SH_ARGS} != "clean" ]] && [[ ${EBUILD_SH_ARGS} != "setup" ]]; then
- cd ${PORTAGE_TMPDIR} &> /dev/null
- cd ${BUILD_PREFIX} &> /dev/null
+if [ -n "${EBUILD_SH_ARGS}" ] && \
+ ! hasq ${EBUILD_SH_ARGS} clean depend help info nofetch ; then
if [ "$(id -nu)" == "portage" ] ; then
export USER=portage
@@ -1778,7 +1777,7 @@ fi
# Save the env only for relevant phases.
if [ -n "${EBUILD_SH_ARGS}" ] && \
- ! hasq ${EBUILD_SH_ARGS} clean help info nofetch ; then
+ ! hasq ${EBUILD_SH_ARGS} clean depend help info nofetch ; then
# Save current environment and touch a success file. (echo for success)
umask 002
save_ebuild_env | filter_readonly_variables > "${T}/environment"