summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-06 16:38:02 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-09 21:41:16 +0100
commit3169ff8e8a1b333baa8a6ec858fe156b89712e8e (patch)
tree1f1137a650c248a1e4d34a5b84acdf3e85a64799 /eclass/python-r1.eclass
parentpython-r1.eclass: Unset global-setting function after use (diff)
downloadgentoo-3169ff8e8a1b333baa8a6ec858fe156b89712e8e.tar.gz
gentoo-3169ff8e8a1b333baa8a6ec858fe156b89712e8e.tar.bz2
gentoo-3169ff8e8a1b333baa8a6ec858fe156b89712e8e.zip
python-r1.eclass: Unset local functions after use
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r--eclass/python-r1.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 6e7b6e19ce10..22030b950d17 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