diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-25 06:33:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-25 06:33:40 +0000 |
commit | 01a6bb2dc23ad83b074b495ef96d9e3c5bb4b35c (patch) | |
tree | 52e9a8efc396a96a7cfd60c9876e059776677e51 /bin | |
parent | 37169b5033f66181850e0681703b388b037e90a2 (diff) | |
download | portage-01a6bb2dc23ad83b074b495ef96d9e3c5bb4b35c.tar.gz portage-01a6bb2dc23ad83b074b495ef96d9e3c5bb4b35c.tar.bz2 portage-01a6bb2dc23ad83b074b495ef96d9e3c5bb4b35c.zip |
Implement loading of environment.bz2 for the pkg_info() phase.
Since a temporary directory is required for processing of
${T}/environment, and we want a user who's not in the portage
group to be able to run the pkg_info() phase, PORTAGE_TMPDIR
is temporarily overridden with a directory created by mkdtemp.
To make this work, doebuild() creates the tempdir and cleans
it up in a finally block. (trunk r8649)
svn path=/main/branches/2.1.2/; revision=8650
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ebuild.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index bd01b4750..c28312ec6 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1601,7 +1601,8 @@ if hasq "depend" "${EBUILD_SH_ARGS}"; then unset BIN_PATH BIN BODY FUNC_SRC fi -if hasq ${EBUILD_PHASE} setup prerm && [ ! -f "${T}/environment" ]; then +if hasq ${EBUILD_PHASE} info prerm setup \ + && [ ! -f "${T}/environment" ] ; then bzip2 -dc "${EBUILD%/*}"/environment.bz2 > \ "${T}/environment" 2> /dev/null if [ -s "${T}/environment" ] ; then |