summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-06 00:23:32 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-06 00:23:32 +0000
commit3914c583172c82ca50668acce58edf278fbef56d (patch)
tree5ef49b42a08bfd209ba216e242cb60f8fe5f7d90 /bin/ebuild.sh
parent34e26c831c63788440cb80bb9d48319d630e8ba2 (diff)
downloadportage-3914c583172c82ca50668acce58edf278fbef56d.tar.gz
portage-3914c583172c82ca50668acce58edf278fbef56d.tar.bz2
portage-3914c583172c82ca50668acce58edf278fbef56d.zip
Move the variable name validation regexes (for bug 211949) into
filter-bash-environment.py instead of passing them in from bash. svn path=/main/trunk/; revision=9445
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 061e1961c..542fca9e2 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1424,12 +1424,7 @@ filter_readonly_variables() {
SANDBOX_DEBUG_LOG SANDBOX_DISABLED SANDBOX_LIB
SANDBOX_LOG SANDBOX_ON"
filtered_vars="${readonly_bash_vars} ${READONLY_PORTAGE_VARS}
- BASH_[_[:alnum:]]* PATH
- [[:digit:]][_[:alnum:]]*
- .*[^_[:alnum:]].*"
- # TODO: Take the above variable name validation and the below sed-based
- # declare -r filter and integrate them both directly into
- # filter-bash-environment.py.
+ BASH_[_[:alnum:]]* PATH"
if hasq --filter-sandbox $* ; then
filtered_vars="${filtered_vars} SANDBOX_[_[:alnum:]]*"
else
@@ -1446,6 +1441,8 @@ filter_readonly_variables() {
"
fi
+ # TODO: Take the the below sed-based declare -r filter and integrate it
+ # directly into filter-bash-environment.py.
# 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