diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-03 09:05:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-03 09:05:38 +0000 |
commit | 1bb31021102532794b844dc6d288867ae3a421de (patch) | |
tree | c5c20e59ec32fe85fdbfce2e64955217357e42bc /bin | |
parent | 025b9ac465f3fdc0c1a595889e6ff0950596a46a (diff) | |
download | portage-1bb31021102532794b844dc6d288867ae3a421de.tar.gz portage-1bb31021102532794b844dc6d288867ae3a421de.tar.bz2 portage-1bb31021102532794b844dc6d288867ae3a421de.zip |
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
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 3 |
1 files changed, 1 insertions, 2 deletions
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 |