From: Jason Stubbs Date: Tue, 28 Feb 2006 13:43:44 +0000 (-0000) Subject: Use ROOT when checking installed packages for --pretend output X-Git-Tag: v2.1_pre6~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=afe8d36504fe1452b0ad27b35baf39a5b7c27e7b;p=portage.git Use ROOT when checking installed packages for --pretend output svn path=/main/trunk/; revision=2802 --- diff --git a/bin/emerge b/bin/emerge index b52bfa08d..f13a95c1e 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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()