summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/porttree.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/dbapi/porttree.py')
-rw-r--r--pym/portage/dbapi/porttree.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 4118a4da4..af14499d6 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -685,8 +685,13 @@ class portdbapi(dbapi):
hasstable = True
if not match and ((hastesting and "~*" in pgroups) or (hasstable and "*" in pgroups) or "**" in pgroups):
match=1
+ uselist = []
+ if "?" in licenses:
+ self.mysettings.setcpv(mycpv, mydb=self)
+ uselist = self.mysettings.get("USE", "").split()
try:
- if self.mysettings.getMissingLicenses(licenses, mycpv):
+ if self.mysettings.getMissingLicenses(
+ licenses, mycpv, uselist):
match = 0
except InvalidDependString:
match = 0