sys_patch: Fix patches typing

This commit is contained in:
Mykola Grymalyuk
2024-06-08 20:24:04 -06:00
parent 73ce7e5bda
commit 475b9e793f
3 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
- Add support for `gktool` in PKG postinstall scripts
- Removes Gatekeeper "verifying" prompt on first launch after PKG installation
- Note `gktool` is only available on macOS Sonoma and newer
- Resolve unpatching crash edge case when host doesn't require patches.
## 1.5.0
- Restructure project directories

View File

@@ -148,7 +148,7 @@ Please check the Github page for more information about this release."""
logging.info("- Detected Snapshot seal intact, detecting patches")
patches = sys_patch_detect.DetectRootPatch(self.constants.computer.real_model, self.constants).detect_patch_set()
if not any(not patch.startswith("Settings") and not patch.startswith("Validation") and patches[patch] is True for patch in patches):
patches = []
patches = {}
if patches:
logging.info("- Detected applicable patches, determining whether possible to patch")
if patches["Validation: Patching Possible"] is False:

View File

@@ -111,7 +111,7 @@ class SysPatchDisplayFrame(wx.Frame):
if not any(not patch.startswith("Settings") and not patch.startswith("Validation") and patches[patch] is True for patch in patches):
logging.info("No applicable patches available")
patches = []
patches = {}
# Check if OCLP has already applied the same patches
no_new_patches = not self._check_if_new_patches_needed(patches) if patches else False