summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--backend.py4
-rw-r--r--image.py2
-rw-r--r--yuminstall.py3
4 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bd26c3436..905cd7b44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/image.py b/image.py
index ab689a849..743237eb9 100644
--- a/image.py
+++ b/image.py
@@ -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,