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 ++++ 1 file changed, 4 insertions(+) (limited to 'apt') 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() . -- cgit v1.2.3