From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 573CF1381F3 for ; Tue, 13 Nov 2012 20:44:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65BB921C050; Tue, 13 Nov 2012 20:41:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F51F21C050 for ; Tue, 13 Nov 2012 20:41:03 +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 A4FC333DA7D for ; Tue, 13 Nov 2012 20:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 31A22E5451 for ; Tue, 13 Nov 2012 20:40:59 +0000 (UTC) From: "Paul Varner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paul Varner" Message-ID: <1352686339.c14f2e750c85f08a1fc92a548cebb96654c1be05.fuzzyray@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/helpers.py X-VCS-Directories: pym/gentoolkit/ X-VCS-Committer: fuzzyray X-VCS-Committer-Name: Paul Varner X-VCS-Revision: c14f2e750c85f08a1fc92a548cebb96654c1be05 X-VCS-Branch: gentoolkit Date: Tue, 13 Nov 2012 20:40:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 337e1a7d-b962-455a-9f4b-dbc29eaddb79 X-Archives-Hash: 6faed7ca06ba19f8949364c28d5b9d1e commit: c14f2e750c85f08a1fc92a548cebb96654c1be05 Author: W. Trevor King tremily us> AuthorDate: Mon Nov 12 02:12:19 2012 +0000 Commit: Paul Varner gentoo org> CommitDate: Mon Nov 12 02:12:19 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=c14f2e75 helpers: update package counts in get_cpvs doctest --- pym/gentoolkit/helpers.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py index cc3bf35..7f30a24 100644 --- a/pym/gentoolkit/helpers.py +++ b/pym/gentoolkit/helpers.py @@ -371,10 +371,10 @@ def get_cpvs(predicate=None, include_installed=True): Example usage: >>> from gentoolkit.helpers import get_cpvs >>> len(set(get_cpvs())) - 26065 + 33518 >>> fn = lambda x: x.startswith('app-portage') >>> len(set(get_cpvs(fn, include_installed=False))) - 112 + 137 @type predicate: function @param predicate: a function to filter the package list with