1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
from installclass import BaseInstallClass
from translate import N_
import os
import iutil
class InstallClass(BaseInstallClass):
name = "upgradeonly"
pixmap = ""
hidden = 1
sortPriority = 1
def requiredDisplayMode(self):
return 't'
def setSteps(self, dispatch):
dispatch.setStepList(
"findrootparts",
"findinstall",
"partitionobjinit",
"upgrademount",
"upgradeswapsuggestion",
"addswap",
"upgrademigfind",
"upgrademigratefs",
"upgradecontinue",
"bootloadersetup",
"bootloader",
"bootloaderpassword",
"readcomps",
"findpackages",
"checkdeps",
"dependencies",
"confirmupgrade",
"install",
"migratefilesystems",
"preinstallconfig",
"installpackages",
"postinstallconfig",
"instbootloader",
"bootdisk",
"complete"
)
if iutil.getArch() == "alpha" or iutil.getArch() == "ia64":
dispatch.skipStep("bootdisk")
dispatch.skipStep("bootloader")
dispatch.skipStep("bootloaderpassword")
def __init__(self, expert):
BaseInstallClass.__init__(self, expert)
self.installType = "upgrade"
|