mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 00:46:38 +01:00
Suport SPDX SBOM decoding (#738)
This commit is contained in:
+5
-1
@@ -73,7 +73,11 @@ func TypeFromPURL(p string) Type {
|
||||
return UnknownPkg
|
||||
}
|
||||
|
||||
switch purl.Type {
|
||||
return TypeByName(purl.Type)
|
||||
}
|
||||
|
||||
func TypeByName(name string) Type {
|
||||
switch name {
|
||||
case packageurl.TypeDebian, "deb":
|
||||
return DebPkg
|
||||
case packageurl.TypeRPM:
|
||||
|
||||
Reference in New Issue
Block a user