Do not treat an empty prefix (the empty string) as an absent EPREFIX.
If people use EPREFIX='', then they should be able to use binpkgs as
well.
if self.built and not self.installed:
# we can have an old binary which has no EPREFIX information
- if "EPREFIX" not in self.metadata or not self.metadata["EPREFIX"]:
+ if "EPREFIX" not in self.metadata:
masks['EPREFIX.missing'] = ''
if len(self.metadata["EPREFIX"].strip()) < len(EPREFIX):
masks['EPREFIX.tooshort'] = self.metadata["EPREFIX"].strip()
pkg.metadata["CHOST"]))
if pkg.built and not pkg.installed:
- if not "EPREFIX" in pkg.metadata or not pkg.metadata["EPREFIX"]:
+ if not "EPREFIX" in pkg.metadata:
mreasons.append(_MaskReason("EPREFIX", "missing EPREFIX"))
elif len(pkg.metadata["EPREFIX"].strip()) < len(pkgsettings["EPREFIX"]):
mreasons.append(_MaskReason("EPREFIX", "EPREFIX: '%s' too small" % pkg.metadata["EPREFIX"]))