From: Fabian Groffen Date: Wed, 2 Feb 2011 07:53:57 +0000 (+0100) Subject: _get_masking_status: add _MaskReason instances iso strings X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=864684b7b0087d32b7f6881e63352163d4f80ff4;p=portage.git _get_masking_status: add _MaskReason instances iso strings As pointed out by Zac in bug #353395, too much blind copy/paste resulted in adding strings for Prefix errors, instead of _MaskReason instances. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 18e299969..7d1799a5a 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5922,9 +5922,9 @@ def _get_masking_status(pkg, pkgsettings, root_config, myrepo=None, use=None): 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():