fix bug 368113 dupe'd USE flags
authordol-sen <brian.dolbec@gmail.com>
Fri, 20 May 2011 05:26:09 +0000 (22:26 -0700)
committerdol-sen <brian.dolbec@gmail.com>
Fri, 20 May 2011 05:53:00 +0000 (22:53 -0700)
pym/gentoolkit/flag.py

index a7d944f4b91a6bc2cd8e2da9ee6652e1f3bba7d5..b5c8228f6e4e07e7f4b5af1aaba4dc846a8cb45a 100644 (file)
@@ -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 []