diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-02 13:06:08 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-02 13:06:08 -0700 |
commit | 1df9c2ccdcc4e3ba2e1969b9951f792cd6c6d04e (patch) | |
tree | e2b59190fff3ce7a86b98a7a0b42065e73677408 | |
parent | 2da227e57f695dc173b22802443084c5fec539b0 (diff) | |
download | portage-1df9c2ccdcc4e3ba2e1969b9951f792cd6c6d04e.tar.gz portage-1df9c2ccdcc4e3ba2e1969b9951f792cd6c6d04e.tar.bz2 portage-1df9c2ccdcc4e3ba2e1969b9951f792cd6c6d04e.zip |
Prevent the local filter_opts variable in filter_readonly_variables()
from being saved in environment.bz2.
-rwxr-xr-x | bin/ebuild.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 714084f0b..5177494f9 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1735,8 +1735,9 @@ filter_readonly_variables() { local filtered_sandbox_vars="SANDBOX_ACTIVE SANDBOX_BASHRC SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB SANDBOX_LOG SANDBOX_ON" + local misc_garbage_vars="_portage_filter_opts" filtered_vars="$readonly_bash_vars $bash_misc_vars - $READONLY_PORTAGE_VARS" + $READONLY_PORTAGE_VARS $misc_garbage_vars" # Don't filter/interfere with prefix variables unless they are # supported by the current EAPI. @@ -1783,17 +1784,17 @@ filter_readonly_variables() { # interfering with the current environment. This is useful when an existing # environment needs to be loaded from a binary or installed package. preprocess_ebuild_env() { - local filter_opts="" + local _portage_filter_opts="" if [ -f "${T}/environment.raw" ] ; then # This is a signal from the python side, indicating that the # environment may contain stale SANDBOX_{DENY,PREDICT,READ,WRITE} # and FEATURES variables that should be filtered out. Between # phases, these variables are normally preserved. - filter_opts+=" --filter-features --filter-locale --filter-path --filter-sandbox" + _portage_filter_opts+=" --filter-features --filter-locale --filter-path --filter-sandbox" fi - filter_readonly_variables ${filter_opts} < "${T}"/environment \ + filter_readonly_variables $_portage_filter_opts < "${T}"/environment \ > "${T}"/environment.filtered || return $? - unset filter_opts + unset _portage_filter_opts mv "${T}"/environment.filtered "${T}"/environment || return $? rm -f "${T}/environment.success" || return $? # WARNING: Code inside this subshell should avoid making assumptions |