summaryrefslogtreecommitdiffstats
path: root/iw/upgrade_swap_gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-03-14 23:03:31 +0000
committerbfox <bfox>2001-03-14 23:03:31 +0000
commit3fc453667b83641ca933488003cfd1d035e8abcf (patch)
tree63b71a564bdc1d16338a3193e43c5dfabb38f172 /iw/upgrade_swap_gui.py
parentd256d4c1ddae4971fa8a3529660e837305413f6a (diff)
downloadanaconda-3fc453667b83641ca933488003cfd1d035e8abcf.tar.gz
anaconda-3fc453667b83641ca933488003cfd1d035e8abcf.tar.xz
anaconda-3fc453667b83641ca933488003cfd1d035e8abcf.zip
Moved the check for upgrade.swapSuggestion to the beginning of getScreen
Diffstat (limited to 'iw/upgrade_swap_gui.py')
-rw-r--r--iw/upgrade_swap_gui.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/iw/upgrade_swap_gui.py b/iw/upgrade_swap_gui.py
index 9ad6bdc7d..171910cbf 100644
--- a/iw/upgrade_swap_gui.py
+++ b/iw/upgrade_swap_gui.py
@@ -17,7 +17,6 @@ class UpgradeSwapWindow (InstallWindow):
ics.setTitle (_("Upgrade Swap Partition"))
ics.setNextEnabled (1)
ics.readHTML ("upswapfile")
- #self.todo = ics.getToDo ()
def getNext (self):
mnt, part, size = self.clist.get_row_data(self.row)
@@ -49,6 +48,7 @@ class UpgradeSwapWindow (InstallWindow):
threads_leave()
upgrade.createSwapFile(self.todo.instPath, self.todo.fstab, mnt, val,
self.todo.intf.progressWindow)
+ self.todo.upgradeFindPackages()
threads_enter()
return None
@@ -59,6 +59,13 @@ class UpgradeSwapWindow (InstallWindow):
self.row = row
def getScreen (self):
+ rc = upgrade.swapSuggestion(self.todo.instPath, self.todo.fstab)
+ if not rc:
+ threads_leave()
+ self.todo.upgradeFindPackages ()
+ threads_enter()
+ return None
+
self.row = 0
box = GtkVBox (FALSE, 5)
box.set_border_width (5)
@@ -80,11 +87,6 @@ class UpgradeSwapWindow (InstallWindow):
self.option1 = GtkRadioButton(None, (_("I want to create a swap file")))
box.pack_start(self.option1, FALSE)
- rc = upgrade.swapSuggestion(self.todo.instPath, self.todo.fstab)
- if not rc:
- self.todo.upgradeFindPackages ()
- return INSTALL_OK
-
(fsList, suggSize, suggMntPoint) = rc
self.swapbox = GtkVBox(FALSE, 5)