Skip to content

Commit a15c21c

Browse files
committed
bump version to 3.0.3
- fix some bugs in translations
1 parent 05ea7af commit a15c21c

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

oclp_r/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self) -> None:
2020
self.metallib_api_link: str = ""
2121

2222
# Patcher Versioning
23-
self.patcher_version: str = "3.0.2" # OCLP-R
23+
self.patcher_version: str = "3.0.3" # OCLP-R
2424
self.patcher_support_pkg_version: str = "1.11.0" # PatcherSupportPkg
2525
self.copyright_date: str = "Copyright © 2020-2026 Dortania and Hackdoc"
2626
self.patcher_name: str = "OCLP-R"

oclp_r/sys_patch/kernelcache/kernel_collection/support.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ def __init__(self, mount_location_data: str, detected_os: int, skip_root_kmutil_
2121
self.mount_location_data = mount_location_data
2222
self.detected_os = detected_os
2323
self.skip_root_kmutil_requirement = skip_root_kmutil_requirement
24-
if global_constants:
25-
self.trans = translate_language.TranslateLanguage_sys_patch(global_constants).kernelcache()
26-
else:
27-
self.trans = None
24+
self.trans = translate_language.TranslateLanguage_sys_patch(global_constants).kernelcache()
25+
2826

2927

3028
def check_kexts_needs_authentication(self, kext_name: str) -> bool:
@@ -156,7 +154,7 @@ def clean_auxiliary_kc(self) -> None:
156154
if self.trans:
157155
logging.info(self.trans[" - Removing {file}"].format(file=file))
158156
else:
159-
logging.info(f" - Removing {file}")
157+
logging.info(" - Removing {file}")
160158
subprocess_wrapper.run_as_root(["/bin/rm", "-Rf", f"/Library/Extensions/{file}"])
161159

162160
# Handle situations where users migrated from older OSes with a lot of garbage in /L*/E*

oclp_r/sys_patch/sys_patch.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def _unpatch_root_vol(self):
206206
kernelcache.KernelCacheSupport(
207207
mount_location_data=self.mount_location_data,
208208
detected_os=self.constants.detected_os,
209-
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement
209+
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement,
210+
global_constants=self.constants
210211
).clean_auxiliary_kc()
211212

212213
self.constants.root_patcher_succeeded = True
@@ -375,7 +376,8 @@ def _execute_patchset(self, required_patches: dict):
375376
kc_support_obj = kernelcache.KernelCacheSupport(
376377
mount_location_data=self.mount_location_data,
377378
detected_os=self.constants.detected_os,
378-
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement
379+
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement,
380+
global_constants=self.constants
379381
)
380382

381383
source_files_path = str(self.constants.payload_local_binaries_root_path)
@@ -536,7 +538,8 @@ def _preflight_checks(self, required_patches: dict, source_files_path: Path) ->
536538
kernelcache.KernelCacheSupport(
537539
mount_location_data=self.mount_location_data,
538540
detected_os=self.constants.detected_os,
539-
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement
541+
skip_root_kmutil_requirement=self.skip_root_kmutil_requirement,
542+
global_constants=self.constants
540543
).clean_auxiliary_kc()
541544

542545
# Make sure SNB kexts are compatible with the host

0 commit comments

Comments
 (0)