diff options
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |