# record location if it's non-default
if rel_path != cpv + ".tbz2":
d["PATH"] = rel_path
- keys = ["USE", "IUSE", "DESCRIPTION", "LICENSE", "PROVIDE", \
+ keys = ["USE", "IUSE", "DESCRIPTION", "EAPI", "LICENSE", "PROVIDE", \
"RDEPEND", "DEPEND", "PDEPEND"]
from itertools import izip
d.update(izip(keys, self.dbapi.aux_get(cpv, keys)))
mycpv = d.get("CPV")
if not mycpv:
continue
+ d.setdefault("EAPI", "0")
d.setdefault("SLOT", "0")
self.packages[mycpv] = d
writepkgindex(pkgfile, [(k, self.header[k]) for k in keys])
for cpv in cpv_all:
metadata = self.packages[cpv].copy()
+ if metadata.get("EAPI") == "0":
+ del metadata["EAPI"]
if metadata.get("SLOT") == "0":
del metadata["SLOT"]
if metadata.get("USE") == "":