196 |
else: |
else: |
197 |
scroll = 0 |
scroll = 0 |
198 |
partList = [] |
partList = [] |
199 |
partList.append(_("Reinstall System")) |
partList.append(_("Wipe system clean and do a fresh install")) |
200 |
|
|
201 |
for (drive, fs, desc) in parts: |
for (drive, fs, desc) in parts: |
202 |
if drive[:5] != "/dev/": |
partList.append("Upgrade existing system \"%s\"" %(desc)) |
|
devname = "/dev/" + drive |
|
|
else: |
|
|
devname = drive |
|
|
partList.append("%s (%s)" %(desc, drive)) |
|
203 |
|
|
204 |
(button, choice) = ListboxChoiceWindow(screen, _("System to Upgrade"), |
(button, choice) = ListboxChoiceWindow(screen, _("System to Upgrade"), |
205 |
_("One or more existing Linux installations " |
_("Your system is upgradeable."), partList, |
|
"have been found " |
|
|
"on your system.\n\nPlease choose one to upgrade, " |
|
|
"or select 'Reinstall System' to freshly install " |
|
|
"your system."), partList, |
|
206 |
[ TEXT_OK_BUTTON, |
[ TEXT_OK_BUTTON, |
207 |
TEXT_BACK_BUTTON ], |
TEXT_BACK_BUTTON ], |
208 |
width = 55, scroll = scroll, |
width = 55, scroll = scroll, |
209 |
height = height, |
height = height, |
210 |
help = "upgraderoot") |
help = "upgraderoot", |
211 |
|
default = 1) |
212 |
|
|
213 |
if button == TEXT_BACK_CHECK: |
if button == TEXT_BACK_CHECK: |
214 |
return INSTALL_BACK |
return INSTALL_BACK |
227 |
id.rootParts = parts |
id.rootParts = parts |
228 |
dispatch.skipStep("installtype", skip = 1) |
dispatch.skipStep("installtype", skip = 1) |
229 |
else: |
else: |
230 |
# dispatch.skipStep("installtype", skip = 0) |
dispatch.skipStep("installtype", skip = 0) |
231 |
id.upgradeRoot = None |
id.upgradeRoot = None |
232 |
|
|
233 |
return INSTALL_OK |
return INSTALL_OK |