From 82a1ed5044a54438392a4e604caf95777d11e0db Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 6 Aug 2010 05:42:07 -0700 Subject: [PATCH] Use _get_masking_status() for the --autounmaks KEYWORDS check. --- pym/_emerge/depgraph.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 4addbd449..4dd3c3f1c 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2538,8 +2538,10 @@ class depgraph(object): if not allow_missing_keywords: return False - mreasons = get_masking_status(pkg, pkgsettings, root_config) - if len(mreasons) == 1 and mreasons[0].startswith("~") and mreasons[0].endswith("keyword"): + mreasons = _get_masking_status(pkg, pkgsettings, root_config) + if len(mreasons) == 1 and \ + mreasons[0].category == 'KEYWORDS' and \ + mreasons[0].message.startswith("~"): return True else: return False -- 2.26.2