summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-03 15:39:30 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-03 15:39:30 +0000
commita38336eab540d0d823234ca861b4dc2ad30781ec (patch)
tree140f7920e66e9a43a38ff9b56254f73dd6d261c3 /bin/ebuild.sh
parentd9524cfb061a1ae5cb802787672142db6b31c11f (diff)
downloadportage-a38336eab540d0d823234ca861b4dc2ad30781ec.tar.gz
portage-a38336eab540d0d823234ca861b4dc2ad30781ec.tar.bz2
portage-a38336eab540d0d823234ca861b4dc2ad30781ec.zip
Recognize export statements when filtering the environment. This
is needed for compatibility with environment.bz2 files generated by paludis. (trunk r9137) svn path=/main/branches/2.1.2/; revision=9138
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh2
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