summaryrefslogtreecommitdiff
path: root/apt/progress.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-02-28 11:51:52 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2006-02-28 11:51:52 +0000
commitef973e43572c5748f908ae0e353e71d61028b479 (patch)
tree3fb4b593d0383cbe974697681ac09a89ef64af41 /apt/progress.py
parentd38698d25c5fdda005f02427357fa97a7d7e2a86 (diff)
downloadpython-apt-ef973e43572c5748f908ae0e353e71d61028b479.tar.gz
* initalize FetchProgress.eta as float and pass a float to InstallProgress.statusChanged() for percent
Diffstat (limited to 'apt/progress.py')
-rw-r--r--apt/progress.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/progress.py b/apt/progress.py
index 9958b9b7..1b437a46 100644
--- a/apt/progress.py
+++ b/apt/progress.py
@@ -62,7 +62,7 @@ class FetchProgress(object):
dlIgnored : "Ignored"}
def __init__(self):
- self.eta = ""
+ self.eta = 0.0
self.percent = 0.0
pass
@@ -180,7 +180,7 @@ class InstallProgress(DumbInstallProgress):
elif status == "pmstatus":
if float(percent) != self.percent or \
status_str != self.status:
- self.statusChange(pkg, percent, status_str)
+ self.statusChange(pkg, float(percent), status_str)
self.percent = float(percent)
self.status = string.strip(status_str)
self.read = ""