]> code.ossystems Code Review - openembedded-core.git/commit
create-spdx.bbclass: Search all license directories for licenses
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 14 Sep 2021 18:11:15 +0000 (20:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Sep 2021 08:48:38 +0000 (09:48 +0100)
commitf58d54b31a1ddb4e60eb07365bfb7dfe78ed56af
tree783ccb2c42a931d27b2477c3d87bded55dd6e10a
parent4a839d7c66e4589050ce3f145a8c7cf820e6b35d
create-spdx.bbclass: Search all license directories for licenses

Before, even if the code was seemingly written to search through all
licenses in ${COMMON_LICENSE_DIR} and ${LICENSE_PATH}, it would
actually bail out after only searching ${COMMON_LICENSE_DIR} due to
the exception handling.

Also refrain from using f-strings.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx.bbclass