summaryrefslogtreecommitdiff
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
parentd38698d25c5fdda005f02427357fa97a7d7e2a86 (diff)
downloadpython-apt-ef973e43572c5748f908ae0e353e71d61028b479.tar.gz
* initalize FetchProgress.eta as float and pass a float to InstallProgress.statusChanged() for percent
-rw-r--r--apt/progress.py4
-rw-r--r--debian/changelog4
2 files changed, 4 insertions, 4 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 = ""
diff --git a/debian/changelog b/debian/changelog
index 77e5794b..aef1f70c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-python-apt (0.6.16.2) unstable; urgency=low
+python-apt (0.6.16.2ubuntu1) dapper; urgency=low
* apt/progress.py:
- added InstallProgress.statusChange(pkg, percent, status)
@@ -8,7 +8,7 @@ python-apt (0.6.16.2) unstable; urgency=low
* apt/cache.py, apt/package.py: fix various pychecker warnings
- --
+ -- Michael Vogt <michael.vogt@ubuntu.com> Tue, 28 Feb 2006 12:04:37 +0100
python-apt (0.6.16.1) unstable; urgency=low