summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/depgraph.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 4addbd44..4dd3c3f1 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