summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-22 19:52:34 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-22 19:52:34 +0000
commitad40f4a4aa46b76a5f543fa6bf894a2522ba05d6 (patch)
tree7f967debadc5c15f281b86202968dc8e484c10bb /bin
parentbce79644f0c08190b3579dcfcd4e222f46af1b53 (diff)
downloadportage-ad40f4a4aa46b76a5f543fa6bf894a2522ba05d6.tar.gz
portage-ad40f4a4aa46b76a5f543fa6bf894a2522ba05d6.tar.bz2
portage-ad40f4a4aa46b76a5f543fa6bf894a2522ba05d6.zip
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, always preprocess the environment when ${PN} == portage. svn path=/main/trunk/; revision=8601
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 3a4273c85..bf1ba9019 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1599,6 +1599,13 @@ fi
if hasq ${EBUILD_SH_ARGS} clean ; then
true
elif ! hasq ${EBUILD_PHASE} depend && [ -f "${T}"/environment ] ; then
+ if [ "${PN}" == "portage" ] ; 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,
+ # always preprocess the environment when ${PN} == portage.
+ preprocess_ebuild_env
+ fi
source "${T}"/environment
else
# *DEPEND and IUSE will be set during the sourcing of the ebuild.