From 764f00cf9b6030a62c7692d72bd3d5fe31a25ea5 Mon Sep 17 00:00:00 2001 From: sayden Date: Fri, 28 Jun 2019 12:56:02 +0200 Subject: [PATCH] Revert "Remove UPL from accepted licenses" --- dev-tools/generate_notice.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-tools/generate_notice.py b/dev-tools/generate_notice.py index f5ee0a6bac54..fc589d787420 100644 --- a/dev-tools/generate_notice.py +++ b/dev-tools/generate_notice.py @@ -304,6 +304,10 @@ def create_notice(filename, beat, copyright, vendor_dirs, csvfile, overrides=Non "Mozilla Public License, version 2.0" ] +UNIVERSAL_PERMISSIVE_LICENSE_TITLES = [ + "The Universal Permissive License (UPL), Version 1.0" +] + # return SPDX identifiers from https://spdx.org/licenses/ def detect_license_summary(content): @@ -328,6 +332,8 @@ def detect_license_summary(content): return "CC-BY-SA-4.0" if any(sentence in content[0:3000] for sentence in LGPL_3_LICENSE_TITLE): return "LGPL-3.0" + if any(sentence in content[0:1500] for sentence in UNIVERSAL_PERMISSIVE_LICENSE_TITLES): + return "UPL-1.0" return "UNKNOWN" @@ -339,6 +345,7 @@ def detect_license_summary(content): "BSD-3-Clause", "BSD-2-Clause", "MPL-2.0", + "UPL-1.0", ] SKIP_NOTICE = []