From: Zac Medico Date: Mon, 3 Jul 2006 20:31:06 +0000 (-0000) Subject: Use the correct bintree and porttree for bug #137446. X-Git-Tag: v2.1.1~288 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90e9de2ac0e43698cf535426c1ca6a201efe26be;p=portage.git Use the correct bintree and porttree for bug #137446. svn path=/main/trunk/; revision=3782 --- diff --git a/pym/portage.py b/pym/portage.py index 3e37a3078..47373869b 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3339,9 +3339,9 @@ def dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None): available_pkgs = {} for atom in relevant_atoms: if use_binaries: - pkg_list = trees["/"]["bintree"].dbapi.match(atom) + pkg_list = trees[myroot]["bintree"].dbapi.match(atom) else: - pkg_list = trees["/"]["porttree"].dbapi.xmatch("match-visible", atom) + pkg_list = trees[myroot]["porttree"].dbapi.xmatch("match-visible", atom) if not pkg_list: continue pkg = best(pkg_list)