summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-14 21:37:53 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-14 21:37:53 +0000
commit9b4fe57cc01c4654cb07888d983c60fe6567529a (patch)
treebc5d445a2da8de4dde10274c85769d4f66da6f96
parent854b464533619c5684eeed381ab1558a92948e8f (diff)
downloadportage-9b4fe57cc01c4654cb07888d983c60fe6567529a.tar.gz
portage-9b4fe57cc01c4654cb07888d983c60fe6567529a.tar.bz2
portage-9b4fe57cc01c4654cb07888d983c60fe6567529a.zip
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
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 4 insertions, 1 deletions
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