[PATCH 04/11] umountImage shouldn't care about currentMedia.

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

 



---
 pyanaconda/image.py      |    5 ++---
 pyanaconda/yuminstall.py |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index a95df6b..59c2b8a 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -195,9 +195,8 @@ def scanForMedia(tree, storage):
 
     return None
 
-def umountImage(tree, currentMedia):
-    if currentMedia is not None:
-        isys.umount(tree, removeDir=False)
+def umountImage(tree):
+    isys.umount(tree, removeDir=False)
 
 def unmountCD(dev, messageWindow):
     if not dev:
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index c13bc13..707b4b0 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -435,7 +435,7 @@ class AnacondaYum(YumSorter):
                         _("Unable to access the disc."))
 
     def _switchImage(self, discnum):
-        umountImage(self.tree, self.currentMedia)
+        umountImage(self.tree)
         self.currentMedia = None
 
         # mountDirectory checks before doing anything, so it's safe to
-- 
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux