Skip to content

Commit

Permalink
Fix macOS 14 build parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Oct 5, 2023
1 parent c2c64f1 commit 8642490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/inventory/test_macos_build_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def test_ok(self):
("22G91", ("macOS", 13, 5, 2, None), "macOS 13.5.2 (22G91)"),
("22G120", ("macOS", 13, 6, 0, None), "macOS 13.6 (22G120)"),
("23A344", ("macOS", 14, 0, 0, None), "macOS 14.0 (23A344)"),
("23B5056e", ("macOS", 14, 1, 0, None), "macOS 14.1 (23B5056e)"),
):
expected_version_d = {
"name": name,
Expand Down
2 changes: 1 addition & 1 deletion zentral/contrib/inventory/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def macos_version_from_build(build):
patch = 0
if patch_letter >= "G" and patch_number >= 115:
minor = 6
elif minor > 0:
elif minor > 0 and major < 14:
minor -= 1
elif minor == 16:
major = 11
Expand Down

0 comments on commit 8642490

Please sign in to comment.