[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 6/6] Clean up error reporting.
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 6/6] Clean up error reporting.
- Date: Tue, 4 Dec 2007 22:49:54 -0500
---
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]