Call config._init_dirs() from emerge so that it's not called every time
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Oct 2009 01:57:51 +0000 (01:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Oct 2009 01:57:51 +0000 (01:57 -0000)
the portage api is imported.

svn path=/main/trunk/; revision=14631

pym/_emerge/actions.py
pym/portage/__init__.py

index febe3b545eec3957e9b2f60ab3ec5b0778a0bc1c..6db7fb13c4c44d6dcd410e198a685ea74a39e714 100644 (file)
@@ -2599,6 +2599,7 @@ def load_emerge_config(trees=None):
 
        for root, root_trees in trees.items():
                settings = root_trees["vartree"].settings
+               settings._init_dirs()
                setconfig = load_default_config(settings, root_trees)
                root_trees["root_config"] = RootConfig(settings, root_trees, setconfig)
 
index 0ada1eb6836dcb0d9c26da0526e19c400d7e4d7d..521cb53c44e8ef99789e75d39c229f3f3a56073a 100644 (file)
@@ -2211,8 +2211,6 @@ class config(object):
                                _validate_cache_for_unsupported_eapis = False
                                _glep_55_enabled = True
 
-                       self._init_dirs()
-
                for k in self._case_insensitive_vars:
                        if k in self:
                                self[k] = self[k].lower()