projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61a0d05
)
fix bug 368113 dupe'd USE flags
author
dol-sen
<brian.dolbec@gmail.com>
Fri, 20 May 2011 05:26:09 +0000
(22:26 -0700)
committer
dol-sen
<brian.dolbec@gmail.com>
Fri, 20 May 2011 05:53:00 +0000
(22:53 -0700)
pym/gentoolkit/flag.py
patch
|
blob
|
history
diff --git
a/pym/gentoolkit/flag.py
b/pym/gentoolkit/flag.py
index a7d944f4b91a6bc2cd8e2da9ee6652e1f3bba7d5..b5c8228f6e4e07e7f4b5af1aaba4dc846a8cb45a 100644
(file)
--- 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 []