From: Fabian Groffen Date: Sun, 8 Mar 2009 21:11:24 +0000 (-0000) Subject: Merged from trunk -r12785:12788 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cda56d99617631682b5429dedf14d68b0602e31d;p=portage.git Merged from trunk -r12785:12788 | 12788 | Translate period characters in eclass names when generating | | zmedico | variable names to store EXPORT_FUNCTIONS arguments. Thanks | | | to Arfrever for reporting. | svn path=/main/branches/prefix/; revision=12790 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 9a3443fbb..5014f6519 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1183,9 +1183,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