summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-06 05:42:07 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-06 05:42:07 -0700
commit82a1ed5044a54438392a4e604caf95777d11e0db (patch)
tree66aab38a8337ac2cf30fb93202b47c196a9b351a
parent0d529b7829b19b3f55dc05747dc8299ae32498e1 (diff)
downloadportage-82a1ed5044a54438392a4e604caf95777d11e0db.tar.gz
portage-82a1ed5044a54438392a4e604caf95777d11e0db.tar.bz2
portage-82a1ed5044a54438392a4e604caf95777d11e0db.zip
Use _get_masking_status() for the --autounmaks KEYWORDS check.
-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 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