since otherwise it can interfere with the environment for things
like the "package" phase.
svn path=/main/trunk/; revision=8603
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,