diff options
Diffstat (limited to 'paludis/repositories/e/ebuild/source_functions.bash')
-rwxr-xr-x | paludis/repositories/e/ebuild/source_functions.bash | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/source_functions.bash b/paludis/repositories/e/ebuild/source_functions.bash index 92f9541ec..f3f91b7cf 100755 --- a/paludis/repositories/e/ebuild/source_functions.bash +++ b/paludis/repositories/e/ebuild/source_functions.bash @@ -20,6 +20,20 @@ # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA +ebuild_need_extglob() +{ + eval "_ebuild_need_extglob_$(declare -f ${1})" + eval " + ${1}() + { + eval \" + shopt -s extglob + _ebuild_need_extglob_${1} \\\"\\\${@}\\\" + eval \\\"\$(shopt -p extglob); return \\\${?}\\\" + \" + }" +} + ebuild_safe_source() { set -- "${@}" '[^a-zA-Z_]*' '*[^a-zA-Z0-9_]*' \ @@ -38,6 +52,7 @@ ebuild_safe_source() source "${1}" eval "trap DEBUG; shopt -u extdebug; set +T; return ${?}" } +ebuild_need_extglob ebuild_safe_source ebuild_verify_not_changed_from_global_scope() { |