diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-06 05:42:07 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-06 05:42:07 -0700 |
commit | 82a1ed5044a54438392a4e604caf95777d11e0db (patch) | |
tree | 66aab38a8337ac2cf30fb93202b47c196a9b351a | |
parent | * Split out a _get_masking_status() method that returns categorized (diff) | |
download | portage-multirepo-82a1ed5044a54438392a4e604caf95777d11e0db.tar.gz portage-multirepo-82a1ed5044a54438392a4e604caf95777d11e0db.tar.bz2 portage-multirepo-82a1ed5044a54438392a4e604caf95777d11e0db.zip |
Use _get_masking_status() for the --autounmaks KEYWORDS check.
-rw-r--r-- | pym/_emerge/depgraph.py | 6 |
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 |