[PATCH 6/6] Clean up error reporting.

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

 



---
 yuminstall.py |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 75dc76a..9f8b538 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -329,20 +329,11 @@ class AnacondaYum(YumSorter):
                         "to your hard drive. You are probably out of disk "
                         "space.")
 
-        while True:
-            try:
-                isys.umount(self.tree)
-                self.currentMedia = None
-                break
-            except Exception, e:
-                log.error("exception in _unmountCD: %s" %(e,))
-                self.anaconda.intf.messageWindow(_("Error"),
-                                   _("An error occurred unmounting the disc.  "
-                                     "Please make sure you're not accessing "
-                                     "%s from the shell on tty2 "
-                                     "and then click OK to retry.")
-                                   % (self.tree,))
+            self.anaconda.intf.messageWindow(_("Error"), msg)
+            os.unlink(self._loopbackFile)
+            return 1
 
+        isys.lochangefd("/dev/loop0", self._loopbackFile)
 
     def mediaHandler(self, *args, **kwargs):
         mediaid = kwargs["mediaid"]
-- 
1.5.3.4

_______________________________________________
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