--- 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