From 541539c8bd89e4ee82ddfa250aa5bc82a0a167d0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 4 Jul 2013 22:33:52 -0700 Subject: [PATCH] emerge --info: KeyError with ROOT, bug #475778 The KeyError was triggered when calling vardbapi.aux_get() on a vardbapi instance from the wrong ROOT. --- pym/_emerge/actions.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index c31ad1d86..9463be8b9 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1470,7 +1470,6 @@ def action_info(settings, trees, myopts, myfiles): output_buffer = [] append = output_buffer.append root_config = trees[settings['EROOT']]['root_config'] - running_eroot = trees._running_eroot chost = settings.get("CHOST") append(getportageversion(settings["PORTDIR"], None, @@ -1558,7 +1557,6 @@ def action_info(settings, trees, myopts, myfiles): "sys-devel/binutils", "sys-devel/libtool", "dev-lang/python"] myvars += portage.util.grabfile(settings["PORTDIR"]+"/profiles/info_pkgs") atoms = [] - vardb = trees[running_eroot]['vartree'].dbapi for x in myvars: try: x = Atom(x) @@ -1571,7 +1569,6 @@ def action_info(settings, trees, myopts, myfiles): myvars = sorted(set(atoms)) - portdb = trees[running_eroot]['porttree'].dbapi main_repo = portdb.getRepositoryName(portdb.porttree_root) cp_map = {} cp_max_len = 0 -- 2.26.2