summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
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))