projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14bb81f
)
helpers: update package counts in get_cpvs doctest
author
W. Trevor King
<wking@tremily.us>
Mon, 12 Nov 2012 02:12:19 +0000
(21:12 -0500)
committer
W. Trevor King
<wking@tremily.us>
Mon, 12 Nov 2012 02:12:19 +0000
(21:12 -0500)
pym/gentoolkit/helpers.py
patch
|
blob
|
history
diff --git
a/pym/gentoolkit/helpers.py
b/pym/gentoolkit/helpers.py
index cc3bf3500a1f6c2265c69ebe3f0461d9c11edb57..7f30a2482830f32eb7e5f3899dbe78774663489f 100644
(file)
--- 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)))
- 1
12
+ 1
37
@type predicate: function
@param predicate: a function to filter the package list with