summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2011-04-05 14:46:16 +0200
committerJulian Andres Klode <jak@debian.org>2011-04-05 14:46:16 +0200
commit5cc6fcb55f1fa50094a56644178c5e728deb83a4 (patch)
treeeeeac19476dba9ef34122a91d5d528e700c98fb6 /doc/source
parent4548cac388f26cec60f1cef028421db910385565 (diff)
downloadpython-apt-5cc6fcb55f1fa50094a56644178c5e728deb83a4.tar.gz
Change apt_pkg.Cache() so that passing None for 'progress' results in
no progress output
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/library/apt_pkg.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index 1b75a154..709648ac 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -40,7 +40,8 @@ Working with the cache
The constructor takes an optional argument which must be a subclass of
:class:`apt.progress.base.OpProgress`. This object will then be used to
display information during the cache opening process (or possible creation
- of the cache).
+ of the cache). It may also be ``None``, in which case no progress will
+ be emitted. If not given, progress will be printed to standard output.
.. describe:: cache[pkgname]