From 05a0a37a18fd316b0671ee887256686db92669d6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 Oct 2006 03:16:15 +0000 Subject: In greedy atom handlink, filter binary package for visiblity. svn path=/main/trunk/; revision=4774 --- bin/emerge | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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)) -- cgit v1.2.3-1-g7c22