summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-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
lass='logsubject'>generate: have a default length of 25Jason A. Donenfeld2-6/+12 Folks are lazy and don't want to type very much, so they'd like to have a default password length to generate that can be configured via environment variables per usual. I'm making the default 25. If the user forbids the use of symbols, pwgen will use a-zA-Z0-9, ensuring that at least one A-Z and at least one 0-9 is used. We want to have a password of at least 128-bits, so factoring in the issue with "at least one of this character type", 25 gets us there squarely. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>