mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
sys_patch.py: Better wording for staged update sanity check
This commit is contained in:
@@ -135,13 +135,16 @@ class PatchSysVolume:
|
|||||||
mounted_system_version = Path(self.mount_location) / "System/Library/CoreServices/SystemVersion.plist"
|
mounted_system_version = Path(self.mount_location) / "System/Library/CoreServices/SystemVersion.plist"
|
||||||
|
|
||||||
if not mounted_system_version.exists():
|
if not mounted_system_version.exists():
|
||||||
logging.error("- Failed to find SystemVersion.plist")
|
logging.error("- Failed to find SystemVersion.plist on mounted root volume")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
mounted_data = plistlib.load(open(mounted_system_version, "rb"))
|
mounted_data = plistlib.load(open(mounted_system_version, "rb"))
|
||||||
if mounted_data["ProductBuildVersion"] != self.constants.detected_os_build:
|
if mounted_data["ProductBuildVersion"] != self.constants.detected_os_build:
|
||||||
logging.error(f"- SystemVersion.plist build version mismatch: {mounted_data['ProductBuildVersion']} vs {self.constants.detected_os_build}")
|
logging.error(
|
||||||
|
f"- SystemVersion.plist build version mismatch: found {mounted_data['ProductVersion']} ({mounted_data['ProductBuildVersion']}), expected {self.constants.detected_os_version} ({self.constants.detected_os_build})"
|
||||||
|
)
|
||||||
|
logging.error("An update is in progress on your machine and patching cannot continue until it is cancelled or finished")
|
||||||
return False
|
return False
|
||||||
except:
|
except:
|
||||||
logging.error("- Failed to parse SystemVersion.plist")
|
logging.error("- Failed to parse SystemVersion.plist")
|
||||||
|
|||||||
Reference in New Issue
Block a user