As pointed out by Zac in bug #353395, too much blind copy/paste resulted
in adding strings for Prefix errors, instead of _MaskReason instances.
if pkg.built and not pkg.installed:
if not "EPREFIX" in pkg.metadata or not pkg.metadata["EPREFIX"]:
- mreasons.append("missing EPREFIX")
+ mreasons.append(_MaskReason("EPREFIX", "missing EPREFIX"))
elif len(pkg.metadata["EPREFIX"].strip()) < len(pkgsettings["EPREFIX"]):
- mreasons.append("EPREFIX: '%s' too small" % pkg.metadata["EPREFIX"])
+ mreasons.append(_MaskReason("EPREFIX", "EPREFIX: '%s' too small" % pkg.metadata["EPREFIX"]))
if pkg.invalid:
for msg_type, msgs in pkg.invalid.items():