pkginternaluse = ""
iuse = ""
if mydb:
- slot, iuse = mydb.aux_get(self.mycpv, ["SLOT", "IUSE"])
+ if isinstance(mydb, dict):
+ slot = mydb["SLOT"]
+ iuse = mydb["IUSE"]
+ else:
+ slot, iuse = mydb.aux_get(self.mycpv, ["SLOT", "IUSE"])
cpv_slot = "%s:%s" % (self.mycpv, slot)
pkginternaluse = []
for x in iuse.split():
if mylist is None:
return []
newlist=[]
- aux_keys = ["KEYWORDS", "LICENSE", "EAPI", "SLOT"]
+ aux_keys = ["IUSE", "KEYWORDS", "LICENSE", "EAPI", "SLOT"]
metadata = {}
for mycpv in mylist:
metadata.clear()
continue
metadata["USE"] = ""
if "?" in metadata["LICENSE"]:
- self.doebuild_settings.setcpv(mycpv, mydb=self)
+ self.doebuild_settings.setcpv(mycpv, mydb=metadata)
metadata["USE"] = self.doebuild_settings.get("USE", "")
try:
if self.mysettings.getMissingLicenses(mycpv, metadata):