From ef973e43572c5748f908ae0e353e71d61028b479 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 28 Feb 2006 11:51:52 +0000 Subject: * initalize FetchProgress.eta as float and pass a float to InstallProgress.statusChanged() for percent --- apt/progress.py | 4 ++-- debian/changelog | 4 ++-- 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 Tue, 28 Feb 2006 12:04:37 +0100 python-apt (0.6.16.1) unstable; urgency=low -- cgit v1.2.3