Filter out installed keyword masked packages when populating
authorZac Medico <zmedico@gentoo.org>
Thu, 29 May 2008 00:35:09 +0000 (00:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 29 May 2008 00:35:09 +0000 (00:35 -0000)
RootConfig.visible_pkgs since otherwise such packages can trigger
undesireable results inside depgraph._iter_atoms_for_pkg().

svn path=/main/trunk/; revision=10471

pym/_emerge/__init__.py

index c1b487688cce0445942a1586652202eb4716c700..98b81fe5f23e72b3103da24c9508656a07730700 100644 (file)
@@ -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):