-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux: Enhance OS version parsing to handle SUSE SP notation (#248)
For SUSE linux (any distro that uses ID_LIKE=suse), support parsing versions that use `SP` notation for Service Packs, such as `15-SP5` meaning (major=15, minor=5). This change resolves issues where Minor was incorrectly set to `0` for `SP`-based versions and ensures compatibility with both SUSE-specific and conventional version formats. Test cases added include for both `SLES 15-SP5` and `SLED 15-SP5` to validate correct assignment of major, minor, and patch values.
- Loading branch information
1 parent
91959ac
commit 43f710e
Showing
5 changed files
with
83 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
linux: Support SLES/SLED OS version extraction. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
NAME="SLED" | ||
VERSION="15-SP5" | ||
VERSION_ID="15.5" | ||
PRETTY_NAME="SUSE Linux Enterprise Desktop 15 SP5" | ||
ID="sled" | ||
ID_LIKE="suse" | ||
ANSI_COLOR="0;32" | ||
CPE_NAME="cpe:/o:suse:sled:15:sp5" | ||
DOCUMENTATION_URL="https://documentation.suse.com/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
NAME="SLES" | ||
VERSION="15-SP5" | ||
VERSION_ID="15.5" | ||
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5" | ||
ID="sles" | ||
ID_LIKE="suse" | ||
ANSI_COLOR="0;32" | ||
CPE_NAME="cpe:/o:suse:sles:15:sp5" | ||
DOCUMENTATION_URL="https://documentation.suse.com/" |