From 287e27e498516dd00aba1b78aea92a12ec079886 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 12 Apr 2011 14:33:39 +0200 Subject: apt.cache: Document that update() may need an open() (Closes: #622342) --- apt/cache.py | 4 ++++ debian/changelog | 1 + 2 files changed, 5 insertions(+) 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 Wed, 06 Apr 2011 09:46:52 +0200 -- cgit v1.2.3