summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,