Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 10/13] python-r1.eclass: Unset local functions after use
Date: Sun, 06 Dec 2015 19:08:27
Message-Id: 1449428612-20538-11-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] python-r1 suite clean up & impl reorder by "Michał Górny"
1 ---
2 eclass/python-r1.eclass | 3 +++
3 1 file changed, 3 insertions(+)
4
5 diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
6 index 6e7b6e1..22030b9 100644
7 --- a/eclass/python-r1.eclass
8 +++ b/eclass/python-r1.eclass
9 @@ -582,6 +582,7 @@ python_setup() {
10 done
11 }
12 python_foreach_impl _python_try_impl
13 + unset -f _python_try_impl
14
15 if [[ ! ${best_impl} ]]; then
16 eerror "${FUNCNAME}: none of the enabled implementation matched the patterns."
17 @@ -619,6 +620,7 @@ python_export_best() {
18 best=${MULTIBUILD_VARIANT}
19 }
20 multibuild_for_best_variant _python_set_best
21 + unset -f _python_set_best
22
23 debug-print "${FUNCNAME}: Best implementation is: ${best}"
24 python_export "${best}" "${@}"
25 @@ -653,6 +655,7 @@ python_replicate_script() {
26
27 local files=( "${@}" )
28 python_foreach_impl _python_replicate_script
29 + unset -f _python_replicate_script
30
31 # install the wrappers
32 local f
33 --
34 2.6.3