Fix 10.13 bug

This commit is contained in:
Mykola Grymalyuk
2021-03-21 20:56:58 -06:00
parent 8f10f1938e
commit 2904ca702c
+2 -2
View File
@@ -126,14 +126,14 @@ older OS snapshots under Time Machine System Restore.
'', '',
'If you plan to create the USB for another machine, please select the "Change Model" option in the menu.' 'If you plan to create the USB for another machine, please select the "Change Model" option in the menu.'
] ]
elif not self.constants.custom_model and self.current_model in ("iMac7,1") and \ elif not self.constants.custom_model and self.current_model == "iMac7,1" and \
"SSE4.1" not in subprocess.run("sysctl machdep.cpu.features".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode(): "SSE4.1" not in subprocess.run("sysctl machdep.cpu.features".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode():
in_between = [ in_between = [
'Your model requires a CPU upgrade to a CPU supporting SSE4.1+ to be supported by this patcher!', 'Your model requires a CPU upgrade to a CPU supporting SSE4.1+ to be supported by this patcher!',
'', '',
f'If you plan to create the USB for another {self.current_model} with SSE4.1+, please select the "Change Model" option in the menu.' f'If you plan to create the USB for another {self.current_model} with SSE4.1+, please select the "Change Model" option in the menu.'
] ]
elif self.constants.custom_model in ("iMac7,1"): elif self.constants.custom_model == "iMac7,1":
in_between = ["This model is supported", in_between = ["This model is supported",
"However please ensure the CPU has been upgraded to support SSE4.1+" "However please ensure the CPU has been upgraded to support SSE4.1+"
] ]