summaryrefslogtreecommitdiff
path: root/apt/progress/__init__.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-04 18:54:50 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-04 18:54:50 +0200
commitcdabff6d329baba8024224b362f79d822ddd943e (patch)
tree66417ca63d9a7a29afb39350e23dd1b7ce3073b8 /apt/progress/__init__.py
parent75567ebb307ea8cdc9a7c36d8d5a9beb3aca1aa6 (diff)
downloadpython-apt-cdabff6d329baba8024224b362f79d822ddd943e.tar.gz
apt, aptsources, doc: Update to use the new names.
Diffstat (limited to 'apt/progress/__init__.py')
-rw-r--r--apt/progress/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/apt/progress/__init__.py b/apt/progress/__init__.py
index 769942ce..d2a9d497 100644
--- a/apt/progress/__init__.py
+++ b/apt/progress/__init__.py
@@ -153,8 +153,8 @@ class TextFetchProgress(FetchProgress):
FetchProgress.pulse(self)
if self.currentCPS > 0:
s = "[%2.f%%] %sB/s %s" % (self.percent,
- apt_pkg.SizeToStr(int(self.currentCPS)),
- apt_pkg.TimeToStr(int(self.eta)))
+ apt_pkg.size_to_str(int(self.currentCPS)),
+ apt_pkg.time_to_str(int(self.eta)))
else:
s = "%2.f%% [Working]" % (self.percent)
print "\r%s" % (s),
@@ -184,7 +184,7 @@ class DumbInstallProgress(object):
def run(self, pm):
"""Start installation."""
- return pm.DoInstall()
+ return pm.do_install()
def finishUpdate(self):
"""Called when update has finished."""
@@ -278,7 +278,7 @@ class InstallProgress(DumbInstallProgress):
pid = self.fork()
if pid == 0:
# child
- res = pm.DoInstall(self.writefd)
+ res = pm.do_install(self.writefd)
os._exit(res)
self.child_pid = pid
res = self.waitChild()