diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-12-08 17:26:10 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-12-08 17:26:10 +0100 |
| commit | 5fef756d94f52495fa1703d2d27ba73e708c4442 (patch) | |
| tree | df7d6a7fa189c480f108655204cb88b514418f1e /apt/cache.py | |
| parent | d236f527f85b185144875e0e7ad9102c4c2dabd0 (diff) | |
| parent | d686a36d94e909eefc13403391ee60938f54df5c (diff) | |
| download | python-apt-5fef756d94f52495fa1703d2d27ba73e708c4442.tar.gz | |
merged from debian
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py index 8a456715..96b38a57 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -46,7 +46,13 @@ class LockFailedException(IOError): class Cache(object): """Dictionary-like package cache. - The dictionary of this class contains all available packages. + The APT cache file contains a hash table mapping names of binary + packages to their metadata. A Cache object is the in-core + representation of the same. It provides access to APTs idea of the + list of available packages. + + The cache can be used like a mapping from package names to Package + objects (although only getting items is supported). Keyword arguments: progress -- a OpProgress object @@ -510,7 +516,7 @@ class Cache(object): self._callbacks[name].append(callback) def actiongroup(self): - """Return an action group object for the current cache. + """Return an `ActionGroup` object for the current cache. Action groups can be used to speedup actions. The action group is active as soon as it is created, and disabled when the object is |
