]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: Improve parsing time when INCOMPATIBLE_LICENSES is big
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 12 Mar 2021 03:18:52 +0000 (04:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Mar 2021 16:33:03 +0000 (16:33 +0000)
commitdd2532279fb239e7f61396898a8aa44ee5104d1d
tree90775bc0223d84c884180163ea86ee154c89c1e9
parent715a3860f728d08b0a9575690049553c7b8dd65a
license.bbclass: Improve parsing time when INCOMPATIBLE_LICENSES is big

The commit 08cbf1748 (licenses: Update INCOMPATIBLE_LICENSE for
'or-later' handling) increased the parsing time considerably if there
are many licenses in INCOMPATIBLE_LICENSE. Reorganize the code to get
almost all the time back.

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