From 9b4fe57cc01c4654cb07888d983c60fe6567529a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 14 Oct 2008 21:37:53 +0000 Subject: [PATCH] Bug #241366 - Only suggest to run `emaint --check world` when the atom is a direct member of the world set (rather than from a nested set). svn path=/main/trunk/; revision=11691 --- pym/_emerge/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a098e57d6..03ee50eca 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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 -- 2.26.2