diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-13 03:44:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-13 03:44:18 +0000 |
commit | 5ea185c01922d5725dce04ad7dbdc903960ee435 (patch) | |
tree | 0e168047244f2a686e3e2b3107e75ae2efcffdad /bin/ebuild.sh | |
parent | e9d8b72f72055c0ba2eb6b6131ad1bd09d7a6e3d (diff) | |
download | portage-5ea185c01922d5725dce04ad7dbdc903960ee435.tar.gz portage-5ea185c01922d5725dce04ad7dbdc903960ee435.tar.bz2 portage-5ea185c01922d5725dce04ad7dbdc903960ee435.zip |
Bug #202068 - In order to filter unwanted variable assignments out
of the bash environment, use a filter-bash-environment.py script
that behaves similar to egrep -v except that it leaves bash here-
documents intact.
svn path=/main/trunk/; revision=8892
Diffstat (limited to 'bin/ebuild.sh')
-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 45437bc2d..5e09daa69 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1425,7 +1425,7 @@ filter_readonly_variables() { # listed in READONLY_EBUILD_METADATA, since having any readonly attributes # persisting in the saved environment can be inconvenient when it # eventually needs to be reloaded. - egrep -v -e "${var_grep}" | sed \ + "${PORTAGE_BIN_PATH}"/filter-bash-environment.py "${var_grep}" | sed \ -e 's:^declare[[:space:]]\+-r[[:space:]]\+:declare :' \ -e 's:^declare[[:space:]]\+-\([[:alnum:]]*\)r\([[:alnum:]]*\)[[:space:]]\+:declare -\1\2 :' } |