mirror of
https://github.com/anchore/syft
synced 2024-11-14 16:17:17 +00:00
Updated the distro package to include SLES type to expand support, this change will not include the new sqlite3 rpmDB format
Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
parent
ff828fbac2
commit
0f0fe59bf2
3 changed files with 17 additions and 0 deletions
|
@ -75,6 +75,11 @@ func TestIdentifyDistro(t *testing.T) {
|
|||
Type: OpenSuseLeap,
|
||||
Version: "15.2.0",
|
||||
},
|
||||
{
|
||||
fixture: "test-fixtures/os/sles",
|
||||
Type: SLES,
|
||||
Version: "15.2.0",
|
||||
},
|
||||
{
|
||||
fixture: "test-fixtures/os/photon",
|
||||
Type: Photon,
|
||||
|
|
9
syft/distro/test-fixtures/os/sles/etc/os-release
Normal file
9
syft/distro/test-fixtures/os/sles/etc/os-release
Normal file
|
@ -0,0 +1,9 @@
|
|||
NAME="SLES"
|
||||
VERSION="15-SP2"
|
||||
VERSION_ID="15.2"
|
||||
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP2"
|
||||
ID="sles"
|
||||
ID_LIKE="suse"
|
||||
ANSI_COLOR="0;32"
|
||||
CPE_NAME="cpe:/o:suse:sles:15:sp2"
|
||||
DOCUMENTATION_URL="https://documentation.suse.com/"
|
|
@ -17,6 +17,7 @@ const (
|
|||
OracleLinux Type = "oraclelinux"
|
||||
ArchLinux Type = "archlinux"
|
||||
OpenSuseLeap Type = "opensuseleap"
|
||||
SLES Type = "sles"
|
||||
Photon Type = "photon"
|
||||
Windows Type = "windows"
|
||||
)
|
||||
|
@ -34,6 +35,7 @@ var All = []Type{
|
|||
OracleLinux,
|
||||
ArchLinux,
|
||||
OpenSuseLeap,
|
||||
SLES,
|
||||
Photon,
|
||||
Windows,
|
||||
}
|
||||
|
@ -51,6 +53,7 @@ var IDMapping = map[string]Type{
|
|||
"ol": OracleLinux,
|
||||
"arch": ArchLinux,
|
||||
"opensuse-leap": OpenSuseLeap,
|
||||
"sles": SLES,
|
||||
"photon": Photon,
|
||||
"windows": Windows,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue