python-r1.eclass: Unset local functions after use
authorMichał Górny <mgorny@gentoo.org>
Sun, 6 Dec 2015 15:38:02 +0000 (16:38 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 20:41:16 +0000 (21:41 +0100)
eclass/python-r1.eclass

index 6e7b6e19ce10868cfd4b499977dfd2e7114e5d6c..22030b950d1786777022aed95fd11fd53167b29f 100644 (file)
@@ -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