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

svn path=/main/branches/2.1.7/; revision=14659

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

index faaf3f84586ec70fde6f55dc83a80f133b88813a..9ae7f0982ac63315c252cb809e51f023a83eef6f 100644 (file)
@@ -2420,6 +2420,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 ec6f5b96e9cf4b0f2ccbdf9d50a2b2a0dab90e37..57a894f4069f81ef15f483934748b366cb7a939d 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()