From: Zac Medico Date: Wed, 27 Aug 2008 17:04:37 +0000 (-0000) Subject: When reloading the emerge config due to global updates in action_sync(), X-Git-Tag: v2.2_rc9~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b;p=portage.git 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 --- 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(