summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-04 06:55:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-04 06:55:58 +0000
commit8ce1c652d2e5203a6d8468bbd43bbe133f989b15 (patch)
treeaf30b8112033eab068c9f53b9f3be02f62b8ad4f
parent3d15e278979bff76ace3d619cb131a60258bec5c (diff)
downloadportage-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__.py2
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])