diff options
-rw-r--r-- | iw/upgrade_swap_gui.py | 5 | ||||
-rw-r--r-- | textw/upgrade_text.py | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/iw/upgrade_swap_gui.py b/iw/upgrade_swap_gui.py index c891ed96a..14951824f 100644 --- a/iw/upgrade_swap_gui.py +++ b/iw/upgrade_swap_gui.py @@ -55,8 +55,9 @@ class UpgradeSwapWindow (InstallWindow): else: threads_leave() - upgrade.createSwapFile(self.todo.instPath, self.todo.fstab, mnt, val, - self.todo.intf.progressWindow) + if not self.todo.setupFilesystems: + upgrade.createSwapFile(self.todo.instPath, self.todo.fstab, mnt, val, + self.todo.intf.progressWindow) self.todo.upgradeFindPackages() threads_enter() return None diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py index 912b86b51..3411beb00 100644 --- a/textw/upgrade_text.py +++ b/textw/upgrade_text.py @@ -101,8 +101,9 @@ class UpgradeSwapWindow: _("The swap file must be between 0 and 2000 MB in size.")) else: screen.popWindow() - upgrade.createSwapFile(todo.instPath, todo.fstab, mnt, val, - todo.intf.progressWindow) + if not todo.setupFilesystems: + upgrade.createSwapFile(todo.instPath, todo.fstab, mnt, val, + todo.intf.progressWindow) todo.upgradeFindPackages () return INSTALL_OK |