commit: 4d11b4971f8b64caa7d9cb46f70f368e1f2d3017 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Dec 6 15:38:02 2015 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 6 17:28:17 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d11b497
python-r1.eclass: Unset local functions after use eclass/python-r1.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 6e7b6e1..22030b9 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -582,6 +582,7 @@ python_setup() { done } python_foreach_impl _python_try_impl + unset -f _python_try_impl if [[ ! ${best_impl} ]]; then eerror "${FUNCNAME}: none of the enabled implementation matched the patterns." @@ -619,6 +620,7 @@ python_export_best() { best=${MULTIBUILD_VARIANT} } multibuild_for_best_variant _python_set_best + unset -f _python_set_best debug-print "${FUNCNAME}: Best implementation is: ${best}" python_export "${best}" "${@}" @@ -653,6 +655,7 @@ python_replicate_script() { local files=( "${@}" ) python_foreach_impl _python_replicate_script + unset -f _python_replicate_script # install the wrappers local f