From 864684b7b0087d32b7f6881e63352163d4f80ff4 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 2 Feb 2011 08:53:57 +0100 Subject: [PATCH] _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. --- pym/_emerge/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(): -- 2.26.2