diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-08 21:09:00 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-08 21:09:00 +0000 |
commit | 490158773e04b165b1c05fbaaad9892a8ea04bbf (patch) | |
tree | d536ccd90485c7b88636525de4673f72d1af9dd5 | |
parent | 06d4433e8b8be60d606733b9e23f57f8a5869d8f (diff) | |
download | portage-490158773e04b165b1c05fbaaad9892a8ea04bbf.tar.gz portage-490158773e04b165b1c05fbaaad9892a8ea04bbf.tar.bz2 portage-490158773e04b165b1c05fbaaad9892a8ea04bbf.zip |
Translate period characters in eclass names when generating variable names
to store EXPORT_FUNCTIONS arguments. Thanks to Arfrever for reporting.
svn path=/main/trunk/; revision=12788
-rwxr-xr-x | bin/ebuild.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 3307bcdd5..e810446f9 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1173,9 +1173,10 @@ inherit() { olocation="" export ECLASS="$1" - __export_funcs_var=__export_functions_${ECLASS/-/___} - while [[ $__export_funcs_var != ${__export_funcs_var/-/___} ]] ; do - __export_funcs_var=${__export_funcs_var/-/___} + __export_funcs_var=__export_functions_$ECLASS + while [[ $__export_funcs_var =~ [-.] ]] ; do + __export_funcs_var=${__export_funcs_var/-/__dash__} + __export_funcs_var=${__export_funcs_var/./__dot__} done unset $__export_funcs_var |