From ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Aug 2010 14:57:58 -0700 Subject: [PATCH] Fix _get_legacy_global() so that it does't pass in the target_root parameter to create_trees() unless ROOT is set. This is required for make.conf ROOT override to work with LocationsManager. --- pym/portage/_legacy_globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/_legacy_globals.py b/pym/portage/_legacy_globals.py index 69484a96b..baabcc2e6 100644 --- a/pym/portage/_legacy_globals.py +++ b/pym/portage/_legacy_globals.py @@ -28,7 +28,7 @@ def _get_legacy_global(name): kwargs = {} for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"), ("target_root", "ROOT")): - kwargs[k] = os.environ.get(envvar, "/") + kwargs[k] = os.environ.get(envvar) portage._initializing_globals = True portage.db = portage.create_trees(**kwargs) -- 2.26.2