From d2c55e30f5c1944b1b02dfebc9a93e6ffcd8fd0b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 27 Aug 2008 17:04:37 +0000 Subject: [PATCH] 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 --- pym/_emerge/__init__.py | 1 + 1 file changed, 1 insertion(+) 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( -- 2.26.2