Skip to content

Commit 2c21cbe

Browse files
committed
add range updates based on auto updated licenses
1 parent f4c4359 commit 2c21cbe

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

spdxexp/license_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func TestGetLicenseRange(t *testing.T) {
128128
location: map[uint8]int{licenseGroup: 2, versionGroup: 2, licenseIndex: 0}}},
129129
{"multi-element ranges", "GFDL-1.2-only", &licenseRange{
130130
licenses: []string{"GFDL-1.2", "GFDL-1.2-only"},
131-
location: map[uint8]int{licenseGroup: 18, versionGroup: 1, licenseIndex: 1}}},
131+
location: map[uint8]int{licenseGroup: 21, versionGroup: 1, licenseIndex: 1}}},
132132
{"no range", "Bison-exception-2.2", nil},
133133
}
134134

spdxexp/spdxlicenses/license_ranges.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ func LicenseRanges() [][][]string {
6868
"Artistic-2.0",
6969
},
7070
},
71+
{
72+
{
73+
"ASWF-Digital-Assets-1.0",
74+
},
75+
{
76+
"ASWF-Digital-Assets-1.1",
77+
},
78+
},
7179
{
7280
{
7381
"BitTorrent-1.0",
@@ -76,6 +84,14 @@ func LicenseRanges() [][][]string {
7684
"BitTorrent-1.1",
7785
},
7886
},
87+
{
88+
{
89+
"Brian-Gladman-2-Clause",
90+
},
91+
{
92+
"Brian-Gladman-3-Clause",
93+
},
94+
},
7995
{
8096
{
8197
"CC-BY-1.0",
@@ -197,6 +213,14 @@ func LicenseRanges() [][][]string {
197213
"CECILL-2.0",
198214
},
199215
},
216+
{
217+
{
218+
"DRL-1.0",
219+
},
220+
{
221+
"DRL-1.1",
222+
},
223+
},
200224
{
201225
{
202226
"ECL-1.0",
@@ -263,6 +287,14 @@ func LicenseRanges() [][][]string {
263287
"GPL-3.0-or-later",
264288
},
265289
},
290+
{
291+
{
292+
"HP-1986",
293+
},
294+
{
295+
"HP-1989",
296+
},
297+
},
266298
{
267299
{
268300
"LGPL-2.0",

0 commit comments

Comments
 (0)