summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py9
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