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 1SeVw1-0001SE-IZ for garchives@archives.gentoo.org; Tue, 12 Jun 2012 18:35:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5A33E02F0; Tue, 12 Jun 2012 18:34:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 74197E02F0 for ; Tue, 12 Jun 2012 18:34:48 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2423964C58 for ; Tue, 12 Jun 2012 18:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D9A8DE5430 for ; Tue, 12 Jun 2012 18:34:46 +0000 (UTC) From: "Slava Bacherikov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Slava Bacherikov" Message-ID: <1339453378.09c5d76cec81accff270fa33ba09e4092103ae85.bacher09@gentoo> Subject: [gentoo-commits] proj/gentoo-packages:master commit in: gpackages/libs/ X-VCS-Repository: proj/gentoo-packages X-VCS-Files: gpackages/libs/porttree.py X-VCS-Directories: gpackages/libs/ X-VCS-Committer: bacher09 X-VCS-Committer-Name: Slava Bacherikov X-VCS-Revision: 09c5d76cec81accff270fa33ba09e4092103ae85 X-VCS-Branch: master Date: Tue, 12 Jun 2012 18:34:46 +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: eba5721f-7a6d-4ac5-a86b-dbbbd0c6beb7 X-Archives-Hash: 0515d805264bb94c6d1128f390b357ee commit: 09c5d76cec81accff270fa33ba09e4092103ae85 Author: Slava Bacherikov bacher09 org> AuthorDate: Mon Jun 11 22:22:58 2012 +0000 Commit: Slava Bacherikov bacherikov org ua> CommitDate: Mon Jun 11 22:22:58 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoo-packag= es.git;a=3Dcommit;h=3D09c5d76c Add methods that always return uniq list to porttree --- gpackages/libs/porttree.py | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/gpackages/libs/porttree.py b/gpackages/libs/porttree.py index effb144..b5b90d8 100644 --- a/gpackages/libs/porttree.py +++ b/gpackages/libs/porttree.py @@ -416,7 +416,7 @@ class Ebuild(ToStrMixin): return l =20 def get_uniq_keywords(self): - return KeywordsSet(self.get_keywords) + return KeywordsSet(self.get_keywords()) =20 def get_uses_names(self): return self.package_object.environment("IUSE").split() @@ -433,6 +433,9 @@ class Ebuild(ToStrMixin): l.append(use) return l =20 + def get_uniq_uses(self): + return frozenset(self.get_uses()) + #Could be faster @cached_property def is_masked(self): @@ -478,6 +481,9 @@ class Ebuild(ToStrMixin): ret_list.append(StrThatIgnoreCase(ho)) return ret_list =20 + def get_uniq_homepages(self): + return frozenset(self.homepages) + @cached_property def homepage(self): "First homepage in list" @@ -493,6 +499,9 @@ class Ebuild(ToStrMixin): ret_list.append(StrThatIgnoreCase(lic)) return ret_list =20 + def get_uniq_licenses(self): + return frozenset(self.licenses) + sha1 =3D cached_property(_file_hash("ebuild_path"), name =3D 'sha1') mtime =3D cached_property(_file_mtime("ebuild_path"), name =3D 'mtim= e') =20