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 User

 
 
LinkBack Thread Tools
 
Old 11-25-2010, 12:34 AM
"Brian C. Lane"
 
Default Rescan disks when moving back through upgrade check (#614812)

We rescan when moving forward from autopart, but not back, so when
there is something to upgrade we need to also rescan when moving back
to the upgrade screen.

Resolves: rhbz#614812
---
iw/autopart_type.py | 8 ++++++++
iw/examine_gui.py | 10 ++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index fbc4391..9c0ae97 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -147,6 +147,14 @@ class PartitionTypeWindow(InstallWindow):
if self.storage.checkNoDisks():
raise gui.StayOnScreen

+ # reset storage, this is only done when moving forward, not back
+ # temporarily unset storage.clearPartType so that all devices will be
+ # found during storage reset
+ clearPartType = self.anaconda.id.storage.clearPartType
+ self.anaconda.id.storage.clearPartType = None
+ self.anaconda.id.storage.reset()
+ self.anaconda.id.storage.clearPartType = clearPartType
+
self.storage.clearPartChoice = self.buttonGroup.getCurrent()

if self.buttonGroup.getCurrent() == "custom":
diff --git a/iw/examine_gui.py b/iw/examine_gui.py
index 688d3ca..d1099cf 100644
--- a/iw/examine_gui.py
+++ b/iw/examine_gui.py
@@ -90,6 +90,16 @@ class UpgradeExamineWindow (InstallWindow):
else:
self.doupgrade = self.anaconda.id.upgrade

+ if anaconda.dir == DISPATCH_BACK:
+ # reset storage to catch any changes since we only reset when
+ # moving forward from autopart, not back.
+ # temporarily unset storage.clearPartType so that all devices will be
+ # found during storage reset
+ clearPartType = self.anaconda.id.storage.clearPartType
+ self.anaconda.id.storage.clearPartType = None
+ self.anaconda.id.storage.reset()
+ self.anaconda.id.storage.clearPartType = clearPartType
+
# we might get here after storage reset that obsoleted
# root device objects we had found
if not self.anaconda.id.rootParts:
--
1.7.3.2

_______________________________________________
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 09:38 PM.

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