summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index b89278bdd..9d055912d 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -956,14 +956,7 @@ def match_to_list(mypkg, mylist):
@rtype: List
@return: A unique list of package atoms that match the given package atom
"""
- matches = []
- for x in mylist:
- if not isinstance(x, Atom):
- x = Atom(x)
- if match_from_list(x, [mypkg]):
- if x not in matches:
- matches.append(x)
- return matches
+ return [ x for x in set(mylist) if match_from_list(x, [mypkg]) ]
def best_match_to_list(mypkg, mylist):
"""