From 1bb31021102532794b844dc6d288867ae3a421de Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 3 Jul 2008 09:05:38 +0000 Subject: Add a portage._disable_legacy_globals() function. This deletes the ObjectProxy instances that are used for lazy initialization of legacy global variables. The purpose of deleting them is to prevent new code from referencing these deprecated variables. This allows the removal of the PORTAGE_LEGACY_GLOBALS variable which used to serve the same purpose. svn path=/main/trunk/; revision=10909 --- bin/repoman | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 09042b1e2..3f185f5af 100755 --- a/bin/repoman +++ b/bin/repoman @@ -38,14 +38,13 @@ except ImportError: if not hasattr(__builtins__, "set"): from sets import Set as set -os.environ["PORTAGE_LEGACY_GLOBALS"] = "false" try: import portage except ImportError: from os import path as osp sys.path.insert(0, osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym")) import portage -del os.environ["PORTAGE_LEGACY_GLOBALS"] +portage._disable_legacy_globals() try: from repoman.checks import run_checks -- cgit v1.2.3-1-g7c22