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 42A211384B4 for ; Fri, 13 Nov 2015 02:56:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B97DE21C106; Fri, 13 Nov 2015 02:56:02 +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 497F321C106 for ; Fri, 13 Nov 2015 02:56:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6E6373403A3 for ; Fri, 13 Nov 2015 02:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10DF52098 for ; Fri, 13 Nov 2015 02:55:56 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1447379600.29f3837382babcac38d4c0e6498620b0dbc6df67.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/save-ebuild-env.sh X-VCS-Directories: bin/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 29f3837382babcac38d4c0e6498620b0dbc6df67 X-VCS-Branch: master Date: Fri, 13 Nov 2015 02:55:56 +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: 47d5c3aa-cc42-45bb-92bc-588e0ec2ea15 X-Archives-Hash: 0f9c514293980575c10c2d91ec739799 commit: 29f3837382babcac38d4c0e6498620b0dbc6df67 Author: Mike Frysinger gentoo org> AuthorDate: Fri Nov 13 01:53:20 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Nov 13 01:53:20 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=29f38373 ebuild: unset all funcs/vars that start with ___ Since the __* (two) namespace is reserved, and ___* (three) has rarely (if ever) been used in ebuilds, we can nuke all funcs/vars that start with that. It makes clean up easier for us. bin/save-ebuild-env.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/save-ebuild-env.sh b/bin/save-ebuild-env.sh index 31c2d60..ddef1fd 100644 --- a/bin/save-ebuild-env.sh +++ b/bin/save-ebuild-env.sh @@ -89,7 +89,9 @@ __save_ebuild_env() { ___eapi_has_package_manager_build_user && unset -f package_manager_build_user ___eapi_has_package_manager_build_group && unset -f package_manager_build_group - unset -f $(compgen -A function ___eapi_) + # Clear out the triple underscore namespace as it is reserved by the PM. + unset -f $(compgen -A function ___) + unset ${!___*} # portage config variables and variables set directly by portage unset ACCEPT_LICENSE BAD BRACKET BUILD_PREFIX COLS \