summaryrefslogtreecommitdiffstats
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-04 08:44:11 +0100
commit734f5badefd0bff6419ca94e4a5823b85149398a (patch)
tree407edc8b0b25b4da7517e74e07a5a2f9f02dc097
parent3c9102f3b63a1191b6d01b017b2da1067cbda037 (diff)
downloadpoky-734f5badefd0bff6419ca94e4a5823b85149398a.tar.gz
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. (From OE-Core rev: 03f084251510c810c8434d9ddd459187827c1ca8) 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):
58 def add_extracted_license(ident, name, text): 58 def add_extracted_license(ident, name, text):
59 nonlocal document 59 nonlocal document
60 60
61 if ident in license_data["licenses"]:
62 return False
63
64 spdx_lic = oe.spdx.SPDXExtractedLicensingInfo() 61 spdx_lic = oe.spdx.SPDXExtractedLicensingInfo()
65 spdx_lic.name = name 62 spdx_lic.name = name
66 spdx_lic.licenseId = ident 63 spdx_lic.licenseId = ident