From a371ee012e74d973cf6c09f5d98e4da3c99c9588 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sun, 17 Nov 2024 20:29:49 +0700 Subject: [PATCH] Set default darwin versions for missing MaxKernel and MinKernel information Fixed #61 --- Scripts/kext_maestro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/kext_maestro.py b/Scripts/kext_maestro.py index 4e7f42b..ea17c7a 100644 --- a/Scripts/kext_maestro.py +++ b/Scripts/kext_maestro.py @@ -370,8 +370,8 @@ class KextMaestro: if dep_identifier in bundle_dict: visit(bundle_dict[dep_identifier]) - bundle["MaxKernel"] = bundle["MaxKernel"] if self.utils.parse_darwin_version(bundle["MaxKernel"]) < self.utils.parse_darwin_version(bundle_dict[dep_identifier]["MaxKernel"]) else bundle_dict[dep_identifier]["MaxKernel"] - bundle["MinKernel"] = bundle["MinKernel"] if self.utils.parse_darwin_version(bundle["MinKernel"]) > self.utils.parse_darwin_version(bundle_dict[dep_identifier]["MinKernel"]) else bundle_dict[dep_identifier]["MinKernel"] + bundle["MaxKernel"] = bundle["MaxKernel"] if self.utils.parse_darwin_version(bundle["MaxKernel"]) < self.utils.parse_darwin_version(bundle_dict[dep_identifier].get("MaxKernel", "99.99.99")) else bundle_dict[dep_identifier]["MaxKernel"] + bundle["MinKernel"] = bundle["MinKernel"] if self.utils.parse_darwin_version(bundle["MinKernel"]) > self.utils.parse_darwin_version(bundle_dict[dep_identifier].get("MinKernel", "0.0.0")) else bundle_dict[dep_identifier]["MinKernel"] if os.path.splitext(os.path.basename(bundle.get("BundlePath")))[0] == "AirPortBrcm4360_Injector": bundle["MaxKernel"] = "19.99.99"