Bug #241366 - Only suggest to run `emaint --check world` when the atom is
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Oct 2008 21:37:53 +0000 (21:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Oct 2008 21:37:53 +0000 (21:37 -0000)
a direct member of the world set (rather than from a nested set).

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

pym/_emerge/__init__.py

index a098e57d61981c393231a2759d83861dceee20ab..03ee50ecac86f356ae4946ed83daeed247dc07d7 100644 (file)
@@ -7560,8 +7560,11 @@ class depgraph(object):
                if self._missing_args:
                        world_problems = False
                        if "world" in self._sets:
+                               # Filter out indirect members of world (from nested sets)
+                               # since only direct members of world are desired here.
+                               world_set = self.roots[self.target_root].sets["world"]
                                for arg, atom in self._missing_args:
-                                       if arg.name == "world":
+                                       if arg.name == "world" and atom in world_set:
                                                world_problems = True
                                                break