# Find the minimum matching visible version. This is optimized to
# minimize the number of metadata accesses (improves performance
# especially in cases where metadata needs to be generated).
- # This does not implement LICENSE filtering since it's only
- # intended for use by repoman.
if mydep == mykey:
mylist = self.cp_list(mykey)
else:
mylist = match_from_list(mydep, self.cp_list(mykey))
myval = ""
settings = self.mysettings
+ local_config = settings.local_config
if level == "minimum-visible":
iterfunc = iter
else:
continue
if settings.getProfileMaskAtom(cpv, metadata):
continue
+ if local_config:
+ metadata["USE"] = ""
+ if "?" in metadata["LICENSE"]:
+ self.doebuild_settings.setcpv(cpv, mydb=metadata)
+ metadata["USE"] = self.doebuild_settings.get("USE", "")
+ try:
+ if settings.getMissingLicenses(cpv, metadata):
+ continue
+ except InvalidDependString:
+ continue
myval = cpv
break
elif level == "bestmatch-list":
newlist=[]
aux_keys = ["IUSE", "KEYWORDS", "LICENSE", "EAPI", "SLOT"]
metadata = {}
+ local_config = self.mysettings.local_config
for mycpv in mylist:
metadata.clear()
try:
continue
if self.mysettings.getMissingKeywords(mycpv, metadata):
continue
- metadata["USE"] = ""
- if "?" in metadata["LICENSE"]:
- self.doebuild_settings.setcpv(mycpv, mydb=metadata)
- metadata["USE"] = self.doebuild_settings.get("USE", "")
- try:
- if self.mysettings.getMissingLicenses(mycpv, metadata):
+ if local_config:
+ metadata["USE"] = ""
+ if "?" in metadata["LICENSE"]:
+ self.doebuild_settings.setcpv(mycpv, mydb=metadata)
+ metadata["USE"] = self.doebuild_settings.get("USE", "")
+ try:
+ if self.mysettings.getMissingLicenses(mycpv, metadata):
+ continue
+ except InvalidDependString:
continue
- except InvalidDependString:
- continue
newlist.append(mycpv)
return newlist