summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
Diffstat (limited to 'apt')
-rw-r--r--apt/cache.py7
-rw-r--r--apt/progress.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py
index ab3775aa..259d7b9d 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -158,8 +158,11 @@ class Cache(object):
return res
def installArchives(self, pm, installProgress):
- return pm.DoInstall()
-
+ installProgress.startUpdate()
+ res = installProgress.run(pm)
+ installProgress.finishUpdate()
+ return res
+
def commit(self, fetchProgress=None, installProgress=None):
""" Apply the marked changes to the cache """
# FIXME:
diff --git a/apt/progress.py b/apt/progress.py
index 6b4a10e3..552c9e75 100644
--- a/apt/progress.py
+++ b/apt/progress.py
@@ -123,6 +123,8 @@ class InstallProgress:
pass
def startUpdate(self):
pass
+ def run(self, pm):
+ return pm.DoInstall()
def finishUpdate(self):
pass
def updateInterface(self):