chore: handle deprecated SPDX license: StandardML-NJ (#1266)

This commit is contained in:
Marc-Etienne Vargenau
2022-10-17 13:45:36 -04:00
committed by GitHub
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",
+2
View File
@@ -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
}
}