diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-04 06:55:58 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-04 06:55:58 +0000 |
commit | 8ce1c652d2e5203a6d8468bbd43bbe133f989b15 (patch) | |
tree | af30b8112033eab068c9f53b9f3be02f62b8ad4f | |
parent | 3d15e278979bff76ace3d619cb131a60258bec5c (diff) | |
download | portage-8ce1c652d2e5203a6d8468bbd43bbe133f989b15.tar.gz portage-8ce1c652d2e5203a6d8468bbd43bbe133f989b15.tar.bz2 portage-8ce1c652d2e5203a6d8468bbd43bbe133f989b15.zip |
Make sure depgraph._slot_conflict_explanation() doesn't display the same
atom more than once.
svn path=/main/trunk/; revision=12150
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 90a37c1d6..4dfe52a6d 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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]) |