diff options
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/examples/apt-cdrom.py | 3 | ||||
| -rw-r--r-- | doc/source/examples/update-print-uris.py | 1 | ||||
| -rw-r--r-- | doc/source/library/apt_pkg.rst | 5 |
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. |
