Use ROOT when checking installed packages for --pretend output
authorJason Stubbs <jstubbs@gentoo.org>
Tue, 28 Feb 2006 13:43:44 +0000 (13:43 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Tue, 28 Feb 2006 13:43:44 +0000 (13:43 -0000)
svn path=/main/trunk/; revision=2802

bin/emerge

index b52bfa08d37b0754d329e198df4c62aa4a2207bf..f13a95c1e0e541028eab42625a4243bdf2dd142b 100755 (executable)
@@ -1568,7 +1568,7 @@ class depgraph:
                                        if "--changelog" in myopts:
                                                changelogs.extend(self.calc_changelog(
                                                        portage.portdb.findname(x[2]),
-                                                       portage.db["/"]["vartree"].dep_bestmatch('/'.join(portage.catpkgsplit(x[2])[:2])),
+                                                       portage.db[x[1]]["vartree"].dep_bestmatch('/'.join(portage.catpkgsplit(x[2])[:2])),
                                                        x[2]
                                                        ))
                                else:
@@ -1595,8 +1595,8 @@ class depgraph:
                                                pkg = myoldbest
                                        else:
                                                pkg = x[2]
-                                       if portage.db["/"]["vartree"].dbapi.cpv_exists(pkg):
-                                               (old_iuse, old_use) = portage.db["/"]["vartree"].dbapi.aux_get(pkg, ["IUSE", "USE"])
+                                       if portage.db[x[1]]["vartree"].dbapi.cpv_exists(pkg):
+                                               (old_iuse, old_use) = portage.db[x[1]]["vartree"].dbapi.aux_get(pkg, ["IUSE", "USE"])
                                                old_iuse = portage.unique_array(old_iuse.split())
                                                old_iuse.sort()
                                                old_use = old_use.split()