From 668d1a8666e27e94855107fcf5345c1b7fa9316f Mon Sep 17 00:00:00 2001 From: dol-sen Date: Thu, 19 May 2011 22:26:09 -0700 Subject: [PATCH] fix bug 368113 dupe'd USE flags --- pym/gentoolkit/flag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 [] -- 2.26.2