sys_patch: Clean LE properly

This commit is contained in:
Mykola Grymalyuk
2022-12-21 21:15:06 -07:00
parent 5fdde346cf
commit 1277fef735
2 changed files with 12 additions and 14 deletions
+1
View File
@@ -6,6 +6,7 @@
- Applicable for BCM94328, BCM94322 and Atheros chipsets - Applicable for BCM94328, BCM94322 and Atheros chipsets
- Implement Wifi-only patches when no internet connection available but required (ie. KDKs) - Implement Wifi-only patches when no internet connection available but required (ie. KDKs)
- Allows users to install Legacy Wireless patches, then connect to the internet to install remaining patches - Allows users to install Legacy Wireless patches, then connect to the internet to install remaining patches
- Resolve `/Library/Extensions` not being cleaned on KDK-less root patches
- Increment Binaries: - Increment Binaries:
- PatcherSupportPkg 0.7.2 - release - PatcherSupportPkg 0.7.2 - release
+2 -5
View File
@@ -339,13 +339,10 @@ class PatchSysVolume:
if self.constants.detected_os < os_data.os_data.big_sur: if self.constants.detected_os < os_data.os_data.big_sur:
return return
oclp_path = "/System/Library/CoreServices/OpenCore-Legacy-Patcher.plist"
if not Path(oclp_path).exists():
return
print("- Cleaning Auxiliary Kernel Collection") print("- Cleaning Auxiliary Kernel Collection")
oclp_path = "/System/Library/CoreServices/OpenCore-Legacy-Patcher.plist"
if Path(oclp_path).exists():
oclp_plist_data = plistlib.load(Path(oclp_path).open("rb")) oclp_plist_data = plistlib.load(Path(oclp_path).open("rb"))
for key in oclp_plist_data: for key in oclp_plist_data:
if "Install" not in oclp_plist_data[key]: if "Install" not in oclp_plist_data[key]:
continue continue