summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-27 17:04:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-27 17:04:37 +0000
commitd2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b (patch)
tree4b91f0751dbe2a96f9f5dba34f6ed84a6893f2e6
parent7d2d8ae9d179beb04a7eebe90792eeb496b9db9d (diff)
downloadportage-d2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b.tar.gz
portage-d2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b.tar.bz2
portage-d2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b.zip
When reloading the emerge config due to global updates in action_sync(),
correctly update the local root_config reference. This should fix a KeyError: 'porttree' exception that's been reported to be triggered after --sync. svn path=/main/trunk/; revision=11475
-rw-r--r--pym/_emerge/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index ca22b0941..cef13e3e8 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -11503,6 +11503,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
# Reload the whole config from scratch.
settings, trees, mtimedb = load_emerge_config(trees=trees)
portdb = trees[settings["ROOT"]]["porttree"].dbapi
+ root_config = trees[settings["ROOT"]]["root_config"]
mybestpv = portdb.xmatch("bestmatch-visible", "sys-apps/portage")
mypvs = portage.best(