Suport SPDX SBOM decoding (#738)

This commit is contained in:
Keith Zantow
2022-02-09 14:11:20 -05:00
committed by GitHub
parent ca081ae5e0
commit 76f8205936
46 changed files with 1679 additions and 297 deletions
+5 -1
View File
@@ -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: