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 > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 10-27-2010, 05:10 PM
Chris Lumens
 
Default umountImage shouldn't care about currentMedia.

---
pyanaconda/image.py | 5 ++---
pyanaconda/yuminstall.py | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index a95df6b..59c2b8a 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -195,9 +195,8 @@ def scanForMedia(tree, storage):

return None

-def umountImage(tree, currentMedia):
- if currentMedia is not None:
- isys.umount(tree, removeDir=False)
+def umountImage(tree):
+ isys.umount(tree, removeDir=False)

def unmountCD(dev, messageWindow):
if not dev:
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index c13bc13..707b4b0 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -435,7 +435,7 @@ class AnacondaYum(YumSorter):
_("Unable to access the disc."))

def _switchImage(self, discnum):
- umountImage(self.tree, self.currentMedia)
+ umountImage(self.tree)
self.currentMedia = None

# mountDirectory checks before doing anything, so it's safe to
--
1.7.1.1

_______________________________________________
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 10:51 AM.

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