summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-12 14:17:23 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-12 14:17:23 +0200
commit061a2eb7ddc6e19740561225010b7c202bfdd4d7 (patch)
treebc5682e299bd192b3d342aa6afac563871db76ec /portato
parentcf06508a439404cb37432754c78f3bfb342ac1f1 (diff)
downloadportato-061a2eb7ddc6e19740561225010b7c202bfdd4d7.tar.gz
portato-061a2eb7ddc6e19740561225010b7c202bfdd4d7.tar.bz2
portato-061a2eb7ddc6e19740561225010b7c202bfdd4d7.zip
Make portage cleanup old porttree instance
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/settings.py3
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