summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-05 22:01:57 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-05 22:01:57 +0000
commite45e614a430cd094ce2f7594d593370e6248691b (patch)
treee39c416cc87dc972fd5e5d130bc889cfa8c7ab5b
parentFilter PATH along with FEATURES when loading environment.bz2. (diff)
downloadportage-e45e614a430cd094ce2f7594d593370e6248691b.tar.gz
portage-e45e614a430cd094ce2f7594d593370e6248691b.tar.bz2
portage-e45e614a430cd094ce2f7594d593370e6248691b.zip
Make filter_readonly_variables() filter PATH in any case since
we never want to save of reload it. (trunk r9147) svn path=/main/branches/2.1.2/; revision=9148
-rwxr-xr-xbin/ebuild.sh4
-rw-r--r--bin/isolated-functions.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index f8ce26014..8faa68f87 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1408,14 +1408,14 @@ filter_readonly_variables() {
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
- BASH_[_[:alnum:]]*"
+ BASH_[_[:alnum:]]* PATH"
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
else
filtered_vars="${filtered_vars} ${filtered_sandbox_vars}"
fi
if hasq --filter-features $* ; then
- filtered_vars="${filtered_vars} FEATURES PATH"
+ filtered_vars="${filtered_vars} FEATURES"
fi
if ! hasq --allow-extra-vars $* ; then
filtered_vars="
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index e5f65e698..7228cbd77 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -460,7 +460,7 @@ save_ebuild_env() {
ECLASSDIR ECLASS_DEPTH ENDCOL FAKEROOTKEY \
GOOD HILITE HOME IMAGE \
LAST_E_CMD LAST_E_LEN LD_PRELOAD MISC_FUNCTIONS_ARGS MOPREFIX \
- NORMAL PATH PKGDIR PKGUSE PKG_LOGDIR PKG_TMPDIR \
+ NORMAL PKGDIR PKGUSE PKG_LOGDIR PKG_TMPDIR \
PORTAGE_ACTUAL_DISTDIR PORTAGE_ARCHLIST PORTAGE_BASHRC \
PORTAGE_BINPKG_TMPFILE PORTAGE_BUILDDIR \
PORTAGE_COLORMAP PORTAGE_CONFIGROOT PORTAGE_DEBUG \