From 73dcdcd67c9c3fd7abf4782aaeab0d1ee126ad33 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 6 Aug 2010 05:49:28 -0700 Subject: Add a _MaskReason.hint attribute that the --autounmask code can use to simplify the 'unstable keyword' check. --- pym/_emerge/depgraph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym/_emerge/depgraph.py') diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 4dd3c3f1c..b7bbbd4b5 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2540,8 +2540,7 @@ class depgraph(object): return False mreasons = _get_masking_status(pkg, pkgsettings, root_config) if len(mreasons) == 1 and \ - mreasons[0].category == 'KEYWORDS' and \ - mreasons[0].message.startswith("~"): + mreasons[0].hint == 'unstable keyword': return True else: return False -- cgit v1.2.3-1-g7c22