summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-22 20:19:22 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-22 20:19:22 +0000
commita7a50212d0254cc0d5ab777e36510310a41f3c1f (patch)
tree1d0d7c3ca4186e543591fa928f0fd2b6cc9c51e0 /bin/ebuild.sh
parentad40f4a4aa46b76a5f543fa6bf894a2522ba05d6 (diff)
downloadportage-a7a50212d0254cc0d5ab777e36510310a41f3c1f.tar.gz
portage-a7a50212d0254cc0d5ab777e36510310a41f3c1f.tar.bz2
portage-a7a50212d0254cc0d5ab777e36510310a41f3c1f.zip
Don't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is set
since otherwise it can interfere with the environment for things like the "package" phase. svn path=/main/trunk/; revision=8603
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index bf1ba9019..e03b18fa3 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1599,7 +1599,7 @@ fi
if hasq ${EBUILD_SH_ARGS} clean ; then
true
elif ! hasq ${EBUILD_PHASE} depend && [ -f "${T}"/environment ] ; then
- if [ "${PN}" == "portage" ] ; then
+ if [ "${PN}" == "portage" ] && [ -n "${EBUILD_SH_ARGS}" ] ; then
# When portage reinstalls itself, during inst/rm phases, the
# environment may have been saved by a different version of ebuild.sh,
# so it can't trusted that it's been properly filtered. Therefore,