diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-01-03 15:39:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-01-03 15:39:08 +0000 |
commit | bbc577ca2044f016a66e5bb45cbf78226938bef6 (patch) | |
tree | fcf07834eb16a1ae6ae47a511c49bd4861b93968 | |
parent | 8701c75d464eaca97a5f1d9b5a901e62adec37f6 (diff) | |
download | portage-bbc577ca2044f016a66e5bb45cbf78226938bef6.tar.gz portage-bbc577ca2044f016a66e5bb45cbf78226938bef6.tar.bz2 portage-bbc577ca2044f016a66e5bb45cbf78226938bef6.zip |
Recognize export statements when filtering the environment. This
is needed for compatibility with environment.bz2 files generated
by paludis.
svn path=/main/trunk/; revision=9137
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 51b0b5f2f..d625adf6e 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1430,7 +1430,7 @@ filter_readonly_variables() { done set +f var_grep=${var_grep:1} # strip the first | - var_grep="(^|^declare[[:space:]]+-[^[:space:]]+[[:space:]]+)(${var_grep})=.*" + var_grep="(^|^declare[[:space:]]+-[^[:space:]]+[[:space:]]+|^export[[:space:]]+)(${var_grep})=.*" # The sed is to remove the readonly attribute from variables such as those # listed in READONLY_EBUILD_METADATA, since having any readonly attributes # persisting in the saved environment can be inconvenient when it |