From 69617a434d013d6f57d01f85a14baadb07a67d21 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 4 Dec 2008 06:57:49 +0000 Subject: Make sure depgraph._slot_conflict_explanation() doesn't display the same atom more than once. (trunk r12150) svn path=/main/branches/2.1.6/; revision=12151 --- pym/_emerge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d9bd04c1c..f6ef588b2 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -4527,7 +4527,7 @@ class depgraph(object): " reinstall '%s'." % matched_node.slot_atom if matched_node.installed and not unmatched_node.installed: - atoms = [atom for parent, atom in matched_atoms] + atoms = sorted(set(atom for parent, atom in matched_atoms)) explanation = ("New USE for '%s' are incorrectly set. " + \ "In order to solve this, adjust USE to satisfy '%s'") % \ (matched_node.slot_atom, atoms[0]) -- cgit v1.2.3-1-g7c22