summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-20 17:31:08 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-20 17:31:08 -0700
commitc32aee053541993a3b7be732798976ed20faba69 (patch)
tree98350a644d566cb2ade3fa5703fadf7719c84bdd /bin/ebuild.sh
parent5959cb1b25d1d0d7c87fd982df72dfd2212f80a3 (diff)
downloadportage-c32aee053541993a3b7be732798976ed20faba69.tar.gz
portage-c32aee053541993a3b7be732798976ed20faba69.tar.bz2
portage-c32aee053541993a3b7be732798976ed20faba69.zip
At some point we may want to stop exporting FEATURES to the ebuild
environment, in order to prevent ebuilds from abusing it. In preparation for that, export it as PORTAGE_FEATURES so that bashrc users will be able to migrate any FEATURES conditional code to use this alternative variable.
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 432da6465..de3c80bef 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1711,7 +1711,7 @@ filter_readonly_variables() {
filtered_vars="${filtered_vars} ${filtered_sandbox_vars}"
fi
if hasq --filter-features $* ; then
- filtered_vars="${filtered_vars} FEATURES"
+ filtered_vars="${filtered_vars} FEATURES PORTAGE_FEATURES"
fi
if hasq --filter-path $* ; then
filtered_vars+=" PATH"