[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 07/11] Remove unused currentMedia parameter.



---
 pyanaconda/iw/task_gui.py |    2 --
 pyanaconda/yuminstall.py  |    3 ---
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/pyanaconda/iw/task_gui.py b/pyanaconda/iw/task_gui.py
index 42c2dfd..75d0910 100644
--- a/pyanaconda/iw/task_gui.py
+++ b/pyanaconda/iw/task_gui.py
@@ -281,7 +281,6 @@ class RepoEditor:
         repo.baseurl = "file://%s" % ayum.tree
         ayum.mediagrabber = ayum.mediaHandler
         self.anaconda.mediaDevice = cdr
-        ayum.currentMedia = 1
         repo.mediaid = getMediaId(ayum.tree)
         log.info("set mediaid of repo %s to: %s" % (repo.name, repo.mediaid))
 
@@ -448,7 +447,6 @@ class RepoMethodstrEditor(RepoEditor):
 
         self.anaconda.backend.ayum.mediagrabber = self.anaconda.backend.ayum.mediaHandler
         self.anaconda.backend.ayum.anaconda.mediaDevice = cdr
-        self.anaconda.backend.ayum.currentMedia = 1
         log.info("found installation media on %s" % cdr)
         return "cdrom://%s:%s" % (cdr, self.anaconda.backend.ayum.tree)
 
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index a3b4668..7999551 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -325,7 +325,6 @@ class AnacondaYum(YumSorter):
         self.isodir = None
 
         # Only needed for media installs.
-        self.currentMedia = None
         self.mediagrabber = None
 
         # Where is the source media mounted?  This is the directory
@@ -508,7 +507,6 @@ class AnacondaYum(YumSorter):
             if cdr:
                 self.mediagrabber = self.mediaHandler
                 self.anaconda.mediaDevice = cdr
-                self.currentMedia = 1
                 log.info("found installation media on %s" % cdr)
             else:
                 # No CD with media on it and no repo=/method= parameter, so
@@ -933,7 +931,6 @@ class AnacondaYum(YumSorter):
             dev = self.anaconda.storage.devicetree.getDeviceByName(self.anaconda.mediaDevice)
             dev.format.mountpoint = self.tree
             unmountCD(dev, self.anaconda.intf.messageWindow)
-            self.currentMedia = None
 
     def urlgrabberFailureCB (self, obj, *args, **kwargs):
         if hasattr(obj, "exception"):
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]