From: dol-sen Date: Fri, 20 May 2011 05:26:09 +0000 (-0700) Subject: fix bug 368113 dupe'd USE flags X-Git-Tag: gentoolkit-0.3.0.4~3 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=668d1a8666e27e94855107fcf5345c1b7fa9316f;p=gentoolkit.git fix bug 368113 dupe'd USE flags --- 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 []