From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2FFCC1384B4 for ; Sun, 6 Dec 2015 17:29:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E177121C0D5; Sun, 6 Dec 2015 17:29:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA14021C0D1 for ; Sun, 6 Dec 2015 17:29:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 619C13407D0 for ; Sun, 6 Dec 2015 17:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EBC23F1E for ; Sun, 6 Dec 2015 17:29:37 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1449422897.4d11b4971f8b64caa7d9cb46f70f368e1f2d3017.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-cleanup-r2 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4d11b4971f8b64caa7d9cb46f70f368e1f2d3017 X-VCS-Branch: python-cleanup-r2 Date: Sun, 6 Dec 2015 17:29:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 47aa18b8-eb30-4225-b6ca-f975a3543db5 X-Archives-Hash: 6b6578f53bd8c111719aaee9d68dd79a commit: 4d11b4971f8b64caa7d9cb46f70f368e1f2d3017 Author: Michał Górny gentoo org> AuthorDate: Sun Dec 6 15:38:02 2015 +0000 Commit: Michał Górny gentoo 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