From f60af0446ea4112277b2784b515aebb338c62a0e Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 1 Oct 2022 16:22:30 -0600 Subject: [PATCH] kdk_handler.py: Adjust logic --- resources/kdk_handler.py | 2 +- resources/sys_patch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/kdk_handler.py b/resources/kdk_handler.py index fc634193d..5f41a6183 100644 --- a/resources/kdk_handler.py +++ b/resources/kdk_handler.py @@ -174,6 +174,6 @@ class kernel_debug_kit_handler: if Path("/Library/Developer/KDKs").exists(): for file in Path("/Library/Developer/KDKs").iterdir(): if file.is_dir(): - if build in file.name: + if file.name.endswith(f"{build}.kdk"): return True return False \ No newline at end of file diff --git a/resources/sys_patch.py b/resources/sys_patch.py index f3b79a422..055775124 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -128,7 +128,7 @@ class PatchSysVolume: kdk_path = sys_patch_helpers.sys_patch_helpers(self.constants).determine_kdk_present(match_closest=False, override_build=downloaded_kdk) if kdk_path is None: - print("- Unable to find Kernel Debug Kit") + print(f"- Unable to find Kernel Debug Kit: {downloaded_kdk}") raise Exception("Unable to find Kernel Debug Kit") self.kdk_path = kdk_path print(f"- Found KDK at: {kdk_path}")