Add recognition of MPL 2.0 (#31226)

This commit adds the ability for the dependencies info check to
recognize version 2.0 of the Mozilla Public License.
This commit is contained in:
Jason Tedor 2018-06-09 09:46:57 -04:00 committed by GitHub
parent 65c107b47d
commit 1082ea57c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,8 @@ SOFTWARE\\.
final String MOZILLA_1_1 = "Mozilla Public License.*Version 1.1"
final String MOZILLA_2_0 = "Mozilla\\s*Public\\s*License\\s*Version\\s*2\\.0"
switch (licenseText) {
case ~/.*${APACHE_2_0}.*/:
spdx = 'Apache-2.0'
@ -273,6 +275,9 @@ SOFTWARE\\.
case ~/.*${MOZILLA_1_1}.*/:
spdx = 'MPL-1.1'
break
case ~/.*${MOZILLA_2_0}.*/:
spdx = 'MPL-2.0'
break
default:
break
}