summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2ea69664..0b9c1f3a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4045,7 +4045,10 @@ def dep_zapdeps(unreduced, reduced, myroot, use_binaries=0, trees=None):
all_available = True
for atom in atoms:
if not mydbapi.match(atom):
- if vardb and vardb.match(atom):
+ # With --usepkgonly, count installed packages as "available".
+ # Note that --usepkgonly currently has no package.mask support.
+ # See bug #149816.
+ if use_binaries and vardb and vardb.match(atom):
continue
all_available = False
break