File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,8 @@ function(x)
466
466
extensions = NULL ,
467
467
pointers = NULL ,
468
468
is_FOSS = NA ,
469
- restricts_use = NA )
469
+ restricts_use = NA ,
470
+ spdx = " " )
470
471
list (is_empty = is_empty ,
471
472
is_canonical = is_canonical ,
472
473
bad_components = bad_components ,
@@ -478,7 +479,8 @@ function(x)
478
479
extensions = extensions ,
479
480
pointers = pointers ,
480
481
is_FOSS = is_FOSS ,
481
- restricts_use = restricts_use )
482
+ restricts_use = restricts_use ,
483
+ spdx = spdx )
482
484
483
485
484
486
x <- trimws(x )
@@ -495,6 +497,7 @@ function(x)
495
497
is_verified <- FALSE
496
498
is_FOSS <- NA
497
499
restricts_use <- NA
500
+ spdx <- " "
498
501
499
502
# # Try splitting into the individual components.
500
503
components <-
@@ -611,6 +614,9 @@ function(x)
611
614
stringsAsFactors = FALSE )
612
615
}
613
616
617
+ spdx <- paste(unique(unlist(lapply(expansions , `[[` , " SPDX" ),
618
+ use.names = FALSE )),
619
+ collapse = " OR " )
614
620
# # Replace expansions by their labels from the license db.
615
621
# # (As these are unique, we can always easily get the full
616
622
# # expansions back.)
@@ -642,7 +648,8 @@ function(x)
642
648
extensions = extensions ,
643
649
pointers = pointers ,
644
650
is_FOSS = is_FOSS ,
645
- restricts_use = restricts_use )
651
+ restricts_use = restricts_use ,
652
+ spdx = spdx )
646
653
}
647
654
648
655
.standardize_license_components <-
You can’t perform that action at this time.
0 commit comments