diff options
| author | dol-sen <brian.dolbec@gmail.com> | 2011-05-19 22:26:09 -0700 |
|---|---|---|
| committer | dol-sen <brian.dolbec@gmail.com> | 2011-05-19 22:53:00 -0700 |
| commit | 668d1a8666e27e94855107fcf5345c1b7fa9316f (patch) | |
| tree | 1a72493a9bc3820a78835472e64f9facd35a5f22 | |
| parent | 61a0d050975ce5309d9d5247e0e2f6c15bf941a6 (diff) | |
| download | gentoolkit-668d1a8666e27e94855107fcf5345c1b7fa9316f.tar.gz | |
fix bug 368113 dupe'd USE flags
| -rw-r--r-- | pym/gentoolkit/flag.py | 3 |
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 [] |
