diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | backend.py | 4 | ||||
-rw-r--r-- | image.py | 2 | ||||
-rw-r--r-- | yuminstall.py | 3 |
4 files changed, 16 insertions, 1 deletions
@@ -1,5 +1,13 @@ 2006-12-13 Jeremy Katz <katzj@redhat.com> + From Elliot Peele <elliot@rpath.com> + * backend.py (AnacondaBackend.getRequiredMedia): Abstract into the + backend + * yuminstall.py (YumBackend.getRequiredMedia): Add implementation + * image.py (presentRequiredMediaMessage): Use the backend method + +2006-12-13 Jeremy Katz <katzj@redhat.com> + * scripts/splittree.py (Timber.splitSRPMS): Fix overflow of source CD (Dawei Pang <dwpang@redflag-linux.com>) diff --git a/backend.py b/backend.py index 3ca6bd034..a4bca125c 100644 --- a/backend.py +++ b/backend.py @@ -144,6 +144,10 @@ class AnacondaBackend: log.warning("writeConfig not implemented for backend!") pass + def getRequiredMedia(self): + log.warning("getRequiredMedia not implmented for backend!") + pass + def doRepoSetup(anaconda): anaconda.backend.doInitialSetup(anaconda) anaconda.backend.doRepoSetup(anaconda) @@ -45,7 +45,7 @@ else: # # dialog returns a value of 0 if user selected to abort install def presentRequiredMediaMessage(anaconda): - reqcds = anaconda.backend.ayum.tsInfo.reqmedia.keys() + reqcds = anaconda.backend.getRequiredMedia() # if only one CD required no need to pop up a message if len(reqcds) < 2: diff --git a/yuminstall.py b/yuminstall.py index 7908b8e51..8873f9239 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -1479,6 +1479,9 @@ class YumBackend(AnacondaBackend): # repo.enable() # f.close() + def getRequiredMedia(self): + return self.ayum.tsInfo.reqmedia.keys() + class YumProgress: def __init__(self, intf, text, total): window = intf.progressWindow(_("Installation Progress"), text, |