FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Studio User

 
 
LinkBack Thread Tools
 
Old 12-05-2007, 02:49 AM
Chris Lumens
 
Default Clean up error reporting.

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:15 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org