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 | |
| parent | f441b008883170d6a8c4cfeb814b0c07a27e6afd (diff) | |
| download | python-apt-287e27e498516dd00aba1b78aea92a12ec079886.tar.gz | |
apt.cache: Document that update() may need an open() (Closes: #622342)
| -rw-r--r-- | apt/cache.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 1 |
2 files changed, 5 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() . diff --git a/debian/changelog b/debian/changelog index 1460acce..f89de6de 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,7 @@ python-apt (0.8.0~exp2) UNRELEASED; urgency=low * aptsources/sourceslist.py: s/aptsource.py/sourceslist.py/ (LP: #309603) * doc/examples: Add example on how to get architecture names (LP: #194374) * apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820) + * apt.cache: Document that update() may need an open() (Closes: #622342) -- Julian Andres Klode <jak@debian.org> Wed, 06 Apr 2011 09:46:52 +0200 |
