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 7E6941384B4 for ; Sun, 6 Dec 2015 19:08:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9F9021C1CD; Sun, 6 Dec 2015 19:03:53 +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 A1FF121C1B7 for ; Sun, 6 Dec 2015 19:03:51 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 33EB9340834; Sun, 6 Dec 2015 19:03:50 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 10/13] python-r1.eclass: Unset local functions after use Date: Sun, 6 Dec 2015 20:03:29 +0100 Message-Id: <1449428612-20538-11-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> References: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 2ded9f08-ca63-4065-aaac-0cc970a7a323 X-Archives-Hash: 06c5f72e05e8cde647f04fc9d79f1b5a --- 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 -- 2.6.3