summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-18 01:57:51 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-18 01:57:51 +0000
commit79cb3c8f12dc1d114a81fa01add441416d7c7f02 (patch)
tree4bf255f7be1aba115071f3f5b9d648ac068bc5b1
parentc0d9ff7b1749726f8575a0e15b84c04100ab6ddf (diff)
downloadportage-79cb3c8f12dc1d114a81fa01add441416d7c7f02.tar.gz
portage-79cb3c8f12dc1d114a81fa01add441416d7c7f02.tar.bz2
portage-79cb3c8f12dc1d114a81fa01add441416d7c7f02.zip
Call config._init_dirs() from emerge so that it's not called every time
the portage api is imported. svn path=/main/trunk/; revision=14631
-rw-r--r--pym/_emerge/actions.py1
-rw-r--r--pym/portage/__init__.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index febe3b545..6db7fb13c 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -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)
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 0ada1eb68..521cb53c4 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -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()