mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
chore: handle deprecated SPDX license: StandardML-NJ (#1266)
This commit is contained in:
parent
41bc6bb410
commit
e2d06cecb7
2 changed files with 3 additions and 1 deletions
|
@ -1020,7 +1020,7 @@ func Test_processSPDXLicense(t *testing.T) {
|
|||
"sspl-1": "SSPL-1.0",
|
||||
"sspl-1.0": "SSPL-1.0",
|
||||
"sspl-1.0.0": "SSPL-1.0",
|
||||
"standardml-nj": "StandardML-NJ",
|
||||
"standardml-nj": "SMLNJ",
|
||||
"sugarcrm-1": "SugarCRM-1.1.3",
|
||||
"sugarcrm-1.1": "SugarCRM-1.1.3",
|
||||
"sugarcrm-1.1.3": "SugarCRM-1.1.3",
|
||||
|
|
|
@ -39,6 +39,8 @@ func (l License) canReplace(other License) bool {
|
|||
return true
|
||||
case l.ID == "bzip2-1.0.6" && other.ID == "bzip2-1.0.5":
|
||||
return true
|
||||
case l.ID == "SMLNJ" && other.ID == "StandardML-NJ":
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue