diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-28 13:11:50 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-28 13:11:50 +0000 |
| commit | cc3414d9a1a42e1978834392a2bead330c19ec99 (patch) | |
| tree | 4ad3a54a99398c3ffc40db00b27e4d77c611fb72 | |
| parent | 6192052ee2e16c88303772c466016af6aa781ed0 (diff) | |
| download | python-apt-cc3414d9a1a42e1978834392a2bead330c19ec99.tar.gz | |
* fix the return value of Cache.update()
| -rw-r--r-- | apt/cache.py | 6 | ||||
| -rw-r--r-- | debian/changelog | 4 |
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 |
