summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-03-12 11:42:37 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2010-03-12 11:42:37 +0100
commit85238ea03cd35b48a90a2fc1f63f2cf05d5b83b4 (patch)
treebb7fcce7e80cc45e807eab19a3c36f628c888bd3 /doc/source
parent62a7342edb16c38e3d646cc731a4a50ad6657b4f (diff)
parentc657b7a2a59e15a0c415ba94021c4de547a78e60 (diff)
downloadpython-apt-85238ea03cd35b48a90a2fc1f63f2cf05d5b83b4.tar.gz
merged from debian-sid
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/examples/apt-cdrom.py3
-rw-r--r--doc/source/examples/update-print-uris.py1
-rw-r--r--doc/source/library/apt_pkg.rst5
3 files changed, 8 insertions, 1 deletions
diff --git a/doc/source/examples/apt-cdrom.py b/doc/source/examples/apt-cdrom.py
index a20b0f12..cb23e97d 100644
--- a/doc/source/examples/apt-cdrom.py
+++ b/doc/source/examples/apt-cdrom.py
@@ -30,7 +30,8 @@ def show_help():
" -f Fast mode, don't check package files\n"
" -a Thorough scan mode\n"
" -c=? Read this configuration file\n"
- " -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp\n"
+ " -o=? Set an arbitrary configuration option, eg -o "
+ "dir::cache=/tmp\n"
"See fstab(5)")
return 0
diff --git a/doc/source/examples/update-print-uris.py b/doc/source/examples/update-print-uris.py
index f078cdc5..dbe1dfde 100644
--- a/doc/source/examples/update-print-uris.py
+++ b/doc/source/examples/update-print-uris.py
@@ -4,6 +4,7 @@
This behaves somewhat like apt-get --print-uris update."""
import apt_pkg
+
def main():
apt_pkg.init_config()
apt_pkg.init_system()
diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index 05b3e1fc..bcdf2f7a 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -41,6 +41,11 @@ Working with the cache
Return the :class:`Package()` object for the package name given by
*pkgname*.
+ .. describe:: pkgname in cache
+
+ Check whether a package with the name given by *pkgname* exists in
+ the cache.
+
.. method:: update(progress, list[, pulse_interval])
Update the package cache.