diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-22 19:54:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-22 19:54:08 +0000 |
commit | a61072c37fa3095e9326d67cae63643b90792973 (patch) | |
tree | b5546536e15b0682fdf82ef5714a0807a685a4a7 | |
parent | 1f2d6f76fe4eb3c1e1badf5465a09f8c03351218 (diff) | |
download | portage-a61072c37fa3095e9326d67cae63643b90792973.tar.gz portage-a61072c37fa3095e9326d67cae63643b90792973.tar.bz2 portage-a61072c37fa3095e9326d67cae63643b90792973.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.
(trunk r8601)
svn path=/main/branches/2.1.2/; revision=8602
-rwxr-xr-x | bin/ebuild.sh | 7 |
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. |