From: Zac Medico Date: Sat, 21 Oct 2006 03:16:15 +0000 (-0000) Subject: In greedy atom handlink, filter binary package for visiblity. X-Git-Tag: v2.1.2~588 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05a0a37a18fd316b0671ee887256686db92669d6;p=portage.git In greedy atom handlink, filter binary package for visiblity. svn path=/main/trunk/; revision=4774 --- diff --git a/bin/emerge b/bin/emerge index e84017be5..5a65ef795 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1051,7 +1051,10 @@ class depgraph: if myslots: best_pkgs = [] if "--usepkg" in self.myopts: - best_pkg = portage.best(bindb.match(myatom)) + mymatches = bindb.match(myatom) + if "--usepkgonly" not in self.myopts: + mymatches = portdb.visible(mymatches) + best_pkg = portage.best(mymatches) if best_pkg: best_slot = bindb.aux_get(best_pkg, ["SLOT"])[0] best_pkgs.append(("binary", best_pkg, best_slot)) @@ -1616,7 +1619,10 @@ class depgraph: if myslots: best_pkgs = [] if "--usepkg" in self.myopts: - best_pkg = portage.best(bindb.match(atom)) + mymatches = bindb.match(atom) + if "--usepkgonly" not in self.myopts: + mymatches = portdb.visible(mymatches) + best_pkg = portage.best(mymatches) if best_pkg: best_slot = bindb.aux_get(best_pkg, ["SLOT"])[0] best_pkgs.append(("binary", best_pkg, best_slot))