summaryrefslogtreecommitdiff
path: root/apt/progress
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-19 14:39:41 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-19 14:39:41 +0200
commit5c219e07aea347f652cf7949dc74f37282a17144 (patch)
tree3c67450e60e0f2d4150d4af4b3df7ee490c89421 /apt/progress
parent5bdcc585fd6080b0a021ef8f73024d440b4c2e0d (diff)
downloadpython-apt-5c219e07aea347f652cf7949dc74f37282a17144.tar.gz
python/cdromprogress.cc: Add apt_pkg.CdromProgress.
Diffstat (limited to 'apt/progress')
-rw-r--r--apt/progress/old.py22
1 files changed, 4 insertions, 18 deletions
diff --git a/apt/progress/old.py b/apt/progress/old.py
index d4ff5815..63fc5d2e 100644
--- a/apt/progress/old.py
+++ b/apt/progress/old.py
@@ -343,27 +343,13 @@ class InstallProgress(DumbInstallProgress):
updateInterface = function_deprecated_by(update_interface)
-class CdromProgress(object):
+class CdromProgress(apt_pkg.CdromProgress):
"""Report the cdrom add progress.
- Subclass this class to implement cdrom add progress reporting.
+ This class has been replaced by apt_pkg.CdromProgress.
"""
-
- def __init__(self):
- pass
-
- def update(self, text, step):
- """Called periodically to update the user interface."""
-
- def ask_cdrom_name(self):
- """Called to ask for the name of the cdrom."""
-
- def change_cdrom(self):
- """Called to ask for the cdrom to be changed."""
-
- if apt_pkg._COMPAT_0_7:
- askCdromName = function_deprecated_by(ask_cdrom_name)
- changeCdrom = function_deprecated_by(change_cdrom)
+ askCdromName = function_deprecated_by(apt_pkg.CdromProgress.ask_cdrom_name)
+ changeCdrom = function_deprecated_by(apt_pkg.CdromProgress.change_cdrom)
class DpkgInstallProgress(InstallProgress):