From cc3414d9a1a42e1978834392a2bead330c19ec99 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 28 Feb 2006 13:11:50 +0000 Subject: * fix the return value of Cache.update() --- apt/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apt') diff --git a/apt/cache.py b/apt/cache.py index c98c0d49..459ffc40 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -148,7 +148,6 @@ class Cache(object): # now run the fetcher, throw exception if something fails to be # fetched res = self._runFetcher(fetcher) - # cleanup os.close(lock) return res @@ -165,8 +164,9 @@ class Cache(object): self._list.GetIndexes(fetcher) # now run the fetcher, throw exception if something fails to be # fetched - res = self._runFetcher(fetcher) - return res + if self._runFetcher(fetcher) == fetcher.ResultContinue: + return True + return False def installArchives(self, pm, installProgress): installProgress.startUpdate() -- cgit v1.2.3