mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-22 19:10:15 +10:00
kdk_handler.py: Fix cleanup logic
This commit is contained in:
@@ -488,7 +488,7 @@ class KernelDebugKitObject:
|
|||||||
if kdk_folder.name.endswith(".kdk") or kdk_folder.name.endswith(".pkg"):
|
if kdk_folder.name.endswith(".kdk") or kdk_folder.name.endswith(".pkg"):
|
||||||
should_remove = True
|
should_remove = True
|
||||||
for build in exclude_builds:
|
for build in exclude_builds:
|
||||||
if build != "":
|
if build == "":
|
||||||
continue
|
continue
|
||||||
if kdk_folder.name.endswith(f"_{build}.kdk") or kdk_folder.name.endswith(f"_{build}.pkg"):
|
if kdk_folder.name.endswith(f"_{build}.kdk") or kdk_folder.name.endswith(f"_{build}.pkg"):
|
||||||
should_remove = False
|
should_remove = False
|
||||||
|
|||||||
Reference in New Issue
Block a user