summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorStephan Peijnik <debian@sp.or.at>2009-05-04 15:39:18 +0200
committerStephan Peijnik <debian@sp.or.at>2009-05-04 15:39:18 +0200
commitc639dfe4d9c77bf7406bb6e4b433c297d293f709 (patch)
treeaf0a28f0b268f9a5bc007bbd8b964f78ca9fb776 /apt
parent23d29169c30b2f05a0c2943832a7cf7288ff5802 (diff)
downloadpython-apt-c639dfe4d9c77bf7406bb6e4b433c297d293f709.tar.gz
More information available for fetch progress callbacks.
Better exception handling (we really shouldn't segfault on an exception).
Diffstat (limited to 'apt')
-rw-r--r--apt/progress/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt/progress/__init__.py b/apt/progress/__init__.py
index 769942ce..68441cfa 100644
--- a/apt/progress/__init__.py
+++ b/apt/progress/__init__.py
@@ -107,13 +107,14 @@ class FetchProgress(object):
def stop(self):
"""Called when all files have been fetched."""
- def updateStatus(self, uri, descr, shortDescr, status):
+ def updateStatus(self, uri, descr, shortDescr, status, fileSize,
+ partialSize):
"""Called when the status of an item changes.
This happens eg. when the downloads fails or is completed.
"""
- def pulse(self):
+ def pulse(self, items):
"""Called periodically to update the user interface.
Return True to continue or False to cancel.