From: Zac Medico Date: Thu, 4 Dec 2008 06:57:49 +0000 (-0000) Subject: Make sure depgraph._slot_conflict_explanation() doesn't display the same X-Git-Tag: v2.1.6_rc3~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69617a434d013d6f57d01f85a14baadb07a67d21;p=portage.git 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 --- 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])