From: Zac Medico Date: Fri, 27 Aug 2010 21:57:58 +0000 (-0700) Subject: Fix _get_legacy_global() so that it does't pass in the target_root X-Git-Tag: v2.2_rc70~6 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ac6de27c09e48372eb5ddfc804e5d97a70e2dd4f;p=portage.git 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. --- 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)