summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-29 00:35:09 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-29 00:35:09 +0000
commite4ca983efd7a0b971f1fd702aac3af1f0ff0c0bf (patch)
treefc3f5ee43a6341511d872455ba43d9aff250281f
parent783d816cbc5fbbcbbbecef0e815cfe3a4ae180e4 (diff)
downloadportage-e4ca983efd7a0b971f1fd702aac3af1f0ff0c0bf.tar.gz
portage-e4ca983efd7a0b971f1fd702aac3af1f0ff0c0bf.tar.bz2
portage-e4ca983efd7a0b971f1fd702aac3af1f0ff0c0bf.zip
Filter out installed keyword masked packages when populating
RootConfig.visible_pkgs since otherwise such packages can trigger undesireable results inside depgraph._iter_atoms_for_pkg(). svn path=/main/trunk/; revision=10471
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index c1b487688..98b81fe5f 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -5596,7 +5596,9 @@ class depgraph(object):
def __setitem__(self, k, v):
dict.__setitem__(self, k, v)
root_config = self._depgraph.roots[v.root]
- if visible(root_config.settings, v):
+ if visible(root_config.settings, v) and \
+ not (v.installed and \
+ v.root_config.settings.getMissingKeywords(v.cpv, v.metadata)):
root_config.visible_pkgs.cpv_inject(v)
class RepoDisplay(object):