summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 5d7c69615..bf6dd5a36 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -2217,10 +2217,22 @@ class depgraph:
for x in worlddict.keys():
if not portage.isvalidatom(x):
world_problems = True
- elif not self.trees[self.target_root]["vartree"].dbapi.match(x):
- world_problems = True
- else:
- mylist.append(x)
+ continue
+ elif not vardb.match(x):
+ available = False
+ if "--usepkgonly" not in self.myopts and \
+ portdb.match(x):
+ available = True
+ elif "--usepkg" in self.myopts:
+ mymatches = bindb.match(x)
+ if "--usepkgonly" not in self.myopts:
+ mymatches = visible(mymatches)
+ if mymatches:
+ available = True
+ if not available:
+ world_problems = True
+ continue
+ mylist.append(x)
newlist = []
for atom in mylist: