diff options
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/settings.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/backend/portage/settings.py b/portato/backend/portage/settings.py index 4e7a347..5d466ad 100644 --- a/portato/backend/portage/settings.py +++ b/portato/backend/portage/settings.py @@ -29,6 +29,7 @@ class PortageSettings: def __init__ (self): """Initializes the instance. Calls L{load()}.""" self.settingslock = Lock() + self.trees = None self.load() def load(self): @@ -37,7 +38,7 @@ class PortageSettings: kwargs = {} for k, envvar in (("config_root", "PORTAGE_CONFIGROOT"), ("target_root", "ROOT")): kwargs[k] = os.environ.get(envvar, None) - self.trees = portage.create_trees(trees=None, **kwargs) + self.trees = portage.create_trees(trees=self.trees, **kwargs) self.settings = self.trees["/"]["vartree"].settings |