]> code.ossystems Code Review - openembedded-core.git/commitdiff
create-spdx: remove redundant test
authorRoss Burton <ross@burtonini.com>
Fri, 3 Sep 2021 16:00:31 +0000 (17:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Sep 2021 17:10:54 +0000 (18:10 +0100)
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>
meta/classes/create-spdx.bbclass

index 73ccb3c990f333a12ca963f1937554cb1b116525..529dee2291848c577162c869bfcf1666a1a9f610 100644 (file)
@@ -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