diff options
| author | Julian Andres Klode <jak@debian.org> | 2011-04-12 14:33:39 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2011-04-12 14:33:39 +0200 |
| commit | 287e27e498516dd00aba1b78aea92a12ec079886 (patch) | |
| tree | f92958d5538a89d4c39d28dc6fffafa3372abe2e /apt | |
| parent | f441b008883170d6a8c4cfeb814b0c07a27e6afd (diff) | |
| download | python-apt-287e27e498516dd00aba1b78aea92a12ec079886.tar.gz | |
apt.cache: Document that update() may need an open() (Closes: #622342)
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py index 3bbae923..373bb91d 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -339,6 +339,10 @@ class Cache(object): raise_on_error=True, sources_list=None): """Run the equivalent of apt-get update. + You probably want to call open() afterwards, in order to utilise the + new cache. Otherwise, the old cache will be used which can lead to + strange bugs. + The first parameter *fetch_progress* may be set to an instance of apt.progress.FetchProgress, the default is apt.progress.FetchProgress() . |
