-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FsfLicenseDataParser: Fill in implementation
Pull the index (mapping from SPDX IDs to FSF IDs) during initialization, and then lookup each license as needed with a separate request. An implementation that hits isSpdxLicenseFsfLibre multiple times (or which wanted to extract multiple values for a single license) would be more efficient if we cached the per-license FSF response. I've left that off for now because our only consumer is just asking for libre-ness, and only doing that once per license. I've used a Boolean for the isSpdxLicenseFsfLibre to get a nullable value, so we can represent: * "yes, the FSF marks that license 'libre'" (true), * "no, the FSF considers that license non-free" (false), and * "we don't know the FSF opinion for that license" (null).
- Loading branch information
Showing
2 changed files
with
82 additions
and
10 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