Skip to content

Commit 9fe3d09

Browse files
committed
main.py: s/Resume/Repair/g
Since this exact same situation can arise both due to a missed step2 and a boot policy gone missing entirely (e.g. due to Apple bugs), let's just call it a "repair". In the future we'll have more extensive repair options, but for now this makes sense. Signed-off-by: Hector Martin <[email protected]>
1 parent 177625b commit 9fe3d09

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def action_resume_or_upgrade(self, oses, upgrade):
317317
if upgrade:
318318
p_question("Choose an existing install to upgrade:")
319319
else:
320-
p_question("Choose an incomplete install to resume:")
320+
p_question("Choose an incomplete install to repair:")
321321
idx = self.choice("Installed OS", choices)
322322
else:
323323
idx = list(choices.keys())[0]
@@ -334,7 +334,7 @@ def action_resume_or_upgrade(self, oses, upgrade):
334334

335335
self.ins = stub.StubInstaller(self.sysinfo, self.dutil, self.osinfo)
336336
if not self.ins.check_existing_install(osi):
337-
op = "upgrade" if upgrade else "resume"
337+
op = "upgrade" if upgrade else "repair"
338338
p_error( "The existing installation is missing files.")
339339
p_message(f"This tool can only {op} installations that completed the first")
340340
p_message( "stage of the installation process. If it was interrupted, please")
@@ -902,7 +902,7 @@ def main_loop(self):
902902

903903
default = None
904904
if oses_incomplete:
905-
actions["p"] = "Resume an incomplete installation (reboot step)"
905+
actions["p"] = "Repair an incomplete installation"
906906
default = default or "p"
907907
if parts_free:
908908
actions["f"] = "Install an OS into free space"
@@ -934,9 +934,9 @@ def main_loop(self):
934934
elif act == "r":
935935
return self.action_resize(parts_resizable)
936936
elif act == "m":
937-
return self.action_resume_or_upgrade(oses_upgradable, upgrade=True)
937+
return self.action_repair_or_upgrade(oses_upgradable, upgrade=True)
938938
elif act == "p":
939-
return self.action_resume_or_upgrade(oses_incomplete, upgrade=False)
939+
return self.action_repair_or_upgrade(oses_incomplete, upgrade=False)
940940
elif act == "q":
941941
return False
942942

0 commit comments

Comments
 (0)