summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'text.py')
-rw-r--r--text.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/text.py b/text.py
index 1b5c8ce51..77d9f8c38 100644
--- a/text.py
+++ b/text.py
@@ -186,13 +186,20 @@ class InstallPathWindow:
if (todo.instClass.installType == "install"):
intf.steps = intf.commonSteps + intf.installSteps
todo.upgrade = 0
- return INSTALL_NOOP
+ showScreen = 0
elif (todo.instClass.installType == "upgrade"):
intf.steps = intf.commonSteps + intf.upgradeSteps
todo.upgrade = 1
- return INSTALL_NOOP
showScreen = 0
+ if not showScreen:
+ todo.fstab = NewtFstab(todo.setupFilesystems,
+ todo.serial, 0, 0,
+ todo.intf.waitWindow,
+ todo.intf.messageWindow)
+
+ return INSTALL_NOOP
+
if (todo.upgrade):
default = 4
orig = None
@@ -256,19 +263,12 @@ class InstallPathWindow:
class UpgradeExamineWindow:
def __call__ (self, dir, screen, todo):
- from fstab import NewtFstab
-
if dir == -1:
# Hack to let backing out of upgrades work properly
if todo.fstab:
todo.fstab.turnOffSwap()
return INSTALL_NOOP
- todo.fstab = NewtFstab(todo.setupFilesystems,
- todo.serial, 0, 0,
- todo.intf.waitWindow,
- todo.intf.messageWindow)
-
parts = todo.upgradeFindRoot ()
if not parts: