aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-05-19 22:26:09 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-05-19 22:53:00 -0700
commit668d1a8666e27e94855107fcf5345c1b7fa9316f (patch)
tree1a72493a9bc3820a78835472e64f9facd35a5f22
parentRevert "uniqify the list of returned use flags in uses.py. Bug 368113" (diff)
downloadgentoolkit-668d1a8666e27e94855107fcf5345c1b7fa9316f.tar.gz
gentoolkit-668d1a8666e27e94855107fcf5345c1b7fa9316f.tar.bz2
gentoolkit-668d1a8666e27e94855107fcf5345c1b7fa9316f.zip
fix bug 368113 dupe'd USE flags
-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 []