From: Zac Medico Date: Fri, 6 Aug 2010 12:42:07 +0000 (-0700) Subject: Use _get_masking_status() for the --autounmaks KEYWORDS check. X-Git-Tag: v2.2_rc68~381 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82a1ed5044a54438392a4e604caf95777d11e0db;p=portage.git Use _get_masking_status() for the --autounmaks KEYWORDS check. --- 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