From: Zac Medico Date: Sat, 21 Oct 2006 12:17:24 +0000 (-0000) Subject: Also check keyword visibility via gvisible. X-Git-Tag: v2.1.2~579 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bcd977e479eb8e8ec691ef6d9b78fe5485aaff4;p=portage.git Also check keyword visibility via gvisible. svn path=/main/trunk/; revision=4783 --- diff --git a/bin/emerge b/bin/emerge index ad42e3fb7..7acc3500b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -966,6 +966,8 @@ class depgraph: bindb = self.trees[myroot]["bintree"].dbapi pkgsettings = self.pkgsettings[myroot] arg_atoms = [] + def visible(mylist): + return portdb.gvisible(portdb.visible(mylist)) for x in myfiles: ext = os.path.splitext(x)[1] if ext==".tbz2": @@ -1057,7 +1059,7 @@ class depgraph: if "--usepkg" in self.myopts: mymatches = bindb.match(myatom) if "--usepkgonly" not in self.myopts: - mymatches = portdb.visible(mymatches) + mymatches = visible(mymatches) best_pkg = portage.best(mymatches) if best_pkg: best_slot = bindb.aux_get(best_pkg, ["SLOT"])[0] @@ -1084,7 +1086,7 @@ class depgraph: elif "--usepkg" in self.myopts: mymatches = bindb.match(myslot_atom) if "--usepkgonly" not in self.myopts: - mymatches = portdb.visible(mymatches) + mymatches = visible(mymatches) if mymatches: available = True if available: @@ -1566,6 +1568,8 @@ class depgraph: vardb = self.trees[self.target_root]["vartree"].dbapi portdb = self.trees[self.target_root]["porttree"].dbapi bindb = self.trees[self.target_root]["bintree"].dbapi + def visible(mylist): + return portdb.gvisible(portdb.visible(mylist)) world_problems = False if mode=="system": mylist = getlist(self.settings, "system") @@ -1603,7 +1607,7 @@ class depgraph: if "--usepkg" in self.myopts: mymatches = bindb.match(atom) if "--usepkgonly" not in self.myopts: - mymatches = portdb.visible(mymatches) + mymatches = visible(mymatches) best_pkg = portage.best(mymatches) if best_pkg: best_slot = bindb.aux_get(best_pkg, ["SLOT"])[0] @@ -1629,7 +1633,7 @@ class depgraph: elif "--usepkg" in self.myopts: mymatches = bindb.match(myslot_atom) if "--usepkgonly" not in self.myopts: - mymatches = portdb.visible(mymatches) + mymatches = visible(mymatches) if mymatches: available = True if available: