From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QNIfi-00058u-3a for garchives@archives.gentoo.org; Fri, 20 May 2011 05:54:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C5911C056; Fri, 20 May 2011 05:54:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C8D7B1C056 for ; Fri, 20 May 2011 05:54:40 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B0FE1B4052 for ; Fri, 20 May 2011 05:54:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6F55080020 for ; Fri, 20 May 2011 05:54:39 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <668d1a8666e27e94855107fcf5345c1b7fa9316f.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/flag.py X-VCS-Directories: pym/gentoolkit/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 668d1a8666e27e94855107fcf5345c1b7fa9316f Date: Fri, 20 May 2011 05:54:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 56d22b420c004a617ea623ec05033994 commit: 668d1a8666e27e94855107fcf5345c1b7fa9316f Author: dol-sen gmail com> AuthorDate: Fri May 20 05:26:09 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri May 20 05:53:00 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoolkit.gi= t;a=3Dcommit;h=3D668d1a86 fix bug 368113 dupe'd USE flags --- 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 [] =20