summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-28 13:11:50 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-28 13:11:50 +0000
commitcc3414d9a1a42e1978834392a2bead330c19ec99 (patch)
tree4ad3a54a99398c3ffc40db00b27e4d77c611fb72 /apt
parent6192052ee2e16c88303772c466016af6aa781ed0 (diff)
downloadpython-apt-cc3414d9a1a42e1978834392a2bead330c19ec99.tar.gz
* fix the return value of Cache.update()
Diffstat (limited to 'apt')
-rw-r--r--apt/cache.py6
1 files changed, 3 insertions, 3 deletions
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()