Use the correct bintree and porttree for bug #137446.
authorZac Medico <zmedico@gentoo.org>
Mon, 3 Jul 2006 20:31:06 +0000 (20:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 3 Jul 2006 20:31:06 +0000 (20:31 -0000)
svn path=/main/trunk/; revision=3782

pym/portage.py

index 3e37a307888c46344dfd9481666d254ea2348019..47373869b65c4938f14c28a7969af30aaf7b3f28 100644 (file)
@@ -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)