summaryrefslogtreecommitdiff
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
parent6192052ee2e16c88303772c466016af6aa781ed0 (diff)
downloadpython-apt-cc3414d9a1a42e1978834392a2bead330c19ec99.tar.gz
* fix the return value of Cache.update()
-rw-r--r--apt/cache.py6
-rw-r--r--debian/changelog4
2 files changed, 6 insertions, 4 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()
diff --git a/debian/changelog b/debian/changelog
index 94283b9d..cc7e7e56 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,10 @@ python-apt (0.6.16.2ubuntu2) dapper; urgency=low
* apt/progress.py:
- initialize FetchProgress.eta with the correct type
- strip the staus str before passing it to InstallProgress.statusChanged()
+ * apt/cache.py:
+ - return useful values on Cache.update()
- --
+ -- Michael Vogt <michael.vogt@ubuntu.com> Tue, 28 Feb 2006 14:07:06 +0100
python-apt (0.6.16.2ubuntu1) dapper; urgency=low