diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-08-29 21:31:16 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-08-29 21:31:16 +0200 |
| commit | aefb2cce102a32fa34dd0034cc99d4ee272e5e5f (patch) | |
| tree | ec49f870dd061a5718b34fc689d77e2ce76053a7 /DistUpgrade/DistUpgradeControler.py | |
| parent | 12242daaf7269f69e438894ce9175f646ef4b5b5 (diff) | |
| download | python-apt-aefb2cce102a32fa34dd0034cc99d4ee272e5e5f.tar.gz | |
* DistUpgrade/*:
- s/download/fetch/
- integrate the cdrom scan progress into the view
- fixes to the cdrom scan code
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index dd4074ac..fd8bc2b9 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -38,23 +38,6 @@ from gettext import gettext as _ import gettext from DistUpgradeCache import MyCache -class MyCdromProgress(apt.progress.CdromProgress): - """ Report the cdrom add progress - Subclass this class to implement cdrom add progress reporting - """ - def __init__(self): - pass - def update(self, text, step): - """ update is called regularly so that the gui can be redrawn """ - print "update()",text, step - pass - def askCdromName(self): - print "askCdromName" - return "lala" - def changeCdrom(self): - print "changeCdrom" - - class AptCdrom(object): def __init__(self, view, path): self.view = view @@ -82,7 +65,7 @@ class AptCdrom(object): apt_pkg.Config.Set("APT::CDROM::NoMount","true") cdrom = apt_pkg.GetCdrom() # FIXME: add cdrom progress here for the view - progress = MyCdromProgress() + progress = self._view.getCdromProgress() try: res = cdrom.Add(progress) except SystemError, e: |
