-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
report: spdxtagvalue: Generate license reference
For licenses with non-spdx license formats, attach a document block referring to the LicenseRef with some information about the license. In this case, we just add a string that says 'Original License: <the license that the Package object has>' For this to work, we needed a global licenses_found list and a function that will split up the license string in the Package object, check to see if each of those are in the licenses_found list and if not, then add it. Then at then end, take each of those licenses in the license_found list and make a block of text with the required strings. At this point, the SPDX validator seems to be happy with the output Signed-off-by: Nisha K <nishak@vmware.com>
- Loading branch information
Nisha K
committed
May 22, 2019
1 parent
29dce08
commit 99b46f3
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters