[PATCH 2/2] Do not umounut media so early when package install fails.

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

 



Related bug: #573492
Do not umount it in mirrorfailureCB as it will be umounted later in _switchCD
if user chooses Eject when handling the failure in _handlefailure. Moreover,
umounting the CD already in mirrorfailureCB and setting currentMedia to None
prevents actual ejecting in switchCD called from _handlefailure - the disk is
just remounted again after its number verification.
---
 yuminstall.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 17cb2d1..45b5077 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -821,12 +821,6 @@ class AnacondaYum(YumSorter):
                     "or downloaded file is corrupt" % (obj.url, repo.grab._next + 1,
                                                        len(repo.grab.mirrors)))
 
-        if repo.anacondaBaseURLs[0].startswith("cdrom:"):
-            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"):
             log.warning("Try %s/%s for %s failed: %s" % (obj.tries, obj.retry, obj.url, obj.exception))
-- 
1.6.0.6

_______________________________________________
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