summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-21 03:16:15 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-21 03:16:15 +0000
commit05a0a37a18fd316b0671ee887256686db92669d6 (patch)
tree3008196486422248e95d8f906ddcdc7784ba70be /bin
parentd3ab5b8377f831d57609fcba48c00ec467923167 (diff)
downloadportage-05a0a37a18fd316b0671ee887256686db92669d6.tar.gz
portage-05a0a37a18fd316b0671ee887256686db92669d6.tar.bz2
portage-05a0a37a18fd316b0671ee887256686db92669d6.zip
In greedy atom handlink, filter binary package for visiblity.
svn path=/main/trunk/; revision=4774
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge10
1 files 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))