aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-09-03 17:00:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-03 18:10:54 +0100
commit03f084251510c810c8434d9ddd459187827c1ca8 (patch)
treef83b42d166298ba2bb0d2ad0f28ec07583c4031a
parent3405d9114ca9fe4ba820e0025c91670d1a5150b1 (diff)
downloadopenembedded-core-contrib-03f084251510c810c8434d9ddd459187827c1ca8.tar.gz
openembedded-core-contrib-03f084251510c810c8434d9ddd459187827c1ca8.tar.bz2
openembedded-core-contrib-03f084251510c810c8434d9ddd459187827c1ca8.zip
create-spdx: remove redundant test
add_extracted_document() is only called if the license isn't known to SPDX, so there's no need to check again. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/create-spdx.bbclass3
1 files changed, 0 insertions, 3 deletions
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass
index 73ccb3c990..529dee2291 100644
--- a/meta/classes/create-spdx.bbclass
+++ b/meta/classes/create-spdx.bbclass
@@ -58,9 +58,6 @@ def convert_license_to_spdx(lic, document, d):
def add_extracted_license(ident, name, text):
nonlocal document
- if ident in license_data["licenses"]:
- return False
-
spdx_lic = oe.spdx.SPDXExtractedLicensingInfo()
spdx_lic.name = name
spdx_lic.licenseId = ident