mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3c9102f3b6
commit
734f5badef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user