summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/flag.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/gentoolkit/flag.py b/pym/gentoolkit/flag.py
index a7d944f..b5c8228 100644
--- a/pym/gentoolkit/flag.py
+++ b/pym/gentoolkit/flag.py
@@ -36,7 +36,8 @@ def get_iuse(cpv):
@returns [] or the list of IUSE flags
"""
try:
- return PORTDB.aux_get(cpv, ["IUSE"])[0].split()
+ # aux_get might return dupes, so run them through set() to remove them
+ return list(set(PORTDB.aux_get(cpv, ["IUSE"])[0].split()))
except:
return []