diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-02-17 16:45:03 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-02-17 16:45:03 +0100 |
| commit | 972bf036a69f3f41ae5709568e246529b8e40ba5 (patch) | |
| tree | 7e1ea3b5269dc90ea4d3e0b3fe621c505140ce17 /apt/cache.py | |
| parent | d1b2c0fbd34cee0ffced8270149b87def7675b2a (diff) | |
| download | python-apt-972bf036a69f3f41ae5709568e246529b8e40ba5.tar.gz | |
* apt/cache.py:
- call install_progress.startUpdate()/finishUpdate() to keep
compatibility with older code
* apt/progress/base.py:
- restore "self.statusfd, self.writefd" type, provide additional
self.status_pipe and self.write_pipe file like objects
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apt/cache.py b/apt/cache.py index 24d63361..b5733d98 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -328,15 +328,16 @@ class Cache(object): The second parameter *install_progress* refers to an InstallProgress() object of the module apt.progress. """ + # compat with older API try: - install_progress.start_update() - except AttributeError: install_progress.startUpdate() + except AttributeError: + install_progress.start_update() res = install_progress.run(pm) try: - install_progress.finish_update() - except AttributeError: install_progress.finishUpdate() + except AttributeError: + install_progress.finish_update() return res @deprecated_args |
