Make sure depgraph._slot_conflict_explanation() doesn't display the same
authorZac Medico <zmedico@gentoo.org>
Thu, 4 Dec 2008 06:55:58 +0000 (06:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 4 Dec 2008 06:55:58 +0000 (06:55 -0000)
atom more than once.

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

pym/_emerge/__init__.py

index 90a37c1d683712871f8fa911b3b5a1346716671c..4dfe52a6d417c7435cad8e29251c9fe11193eaa5 100644 (file)
@@ -4543,7 +4543,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])