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 > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 04-16-2010, 05:09 PM
David Lehman
 
Default Restore storage.clearPartType after reset when backing out of GUI. (#559233)

We unset storage.clearPartType so that all devices will be found during
reset of storage, but we need to restore it afterwards since the user
is headed to the cleardisks screen and not necessarily all the way back
to the parttype screen where clearPartType would get set again.

I'd like to put this on all active branches, but if people have concerns
about putting it on f13-branch, feel free to speak up.
---
iw/partition_gui.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index e50406d..b78fd9d 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -902,8 +902,12 @@ class PartitionWindow(InstallWindow):

def getPrev(self):
self.stripeGraph.shutDown()
+ # temporarily unset storage.clearPartType so that all devices will be
+ # found during storage reset
+ clearPartType = self.storage.clearPartType
self.storage.clearPartType = None
self.storage.reset()
+ self.storage.clearPartType = clearPartType
self.tree.clear()
del self.parent
return None
--
1.6.6

_______________________________________________
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 01:14 AM.

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