Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:python-cleanup-r2 commit in: eclass/
Date: Wed, 09 Dec 2015 19:32:43
Message-Id: 1449689373.72748a27a6d4cf43af6179f4ac8a4663bac27608.mgorny@gentoo
1 commit: 72748a27a6d4cf43af6179f4ac8a4663bac27608
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 6 15:38:02 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 9 19:29:33 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72748a27
7
8 python-r1.eclass: Unset local functions after use
9
10 eclass/python-r1.eclass | 3 +++
11 1 file changed, 3 insertions(+)
12
13 diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
14 index 6e7b6e1..22030b9 100644
15 --- a/eclass/python-r1.eclass
16 +++ b/eclass/python-r1.eclass
17 @@ -582,6 +582,7 @@ python_setup() {
18 done
19 }
20 python_foreach_impl _python_try_impl
21 + unset -f _python_try_impl
22
23 if [[ ! ${best_impl} ]]; then
24 eerror "${FUNCNAME}: none of the enabled implementation matched the patterns."
25 @@ -619,6 +620,7 @@ python_export_best() {
26 best=${MULTIBUILD_VARIANT}
27 }
28 multibuild_for_best_variant _python_set_best
29 + unset -f _python_set_best
30
31 debug-print "${FUNCNAME}: Best implementation is: ${best}"
32 python_export "${best}" "${@}"
33 @@ -653,6 +655,7 @@ python_replicate_script() {
34
35 local files=( "${@}" )
36 python_foreach_impl _python_replicate_script
37 + unset -f _python_replicate_script
38
39 # install the wrappers
40 local f