licenses: Fix logic error introduced in rename

The previous commit introduced a small logic error. Fix the renaming issue.

(From OE-Core rev: b01e10b27d23ea1b4ac58376c2423505a70832d6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-02-25 08:33:06 +00:00
parent 18f40dfdfd
commit 2a06ab3eb8

View File

@@ -135,10 +135,10 @@ def is_included(licensestr, include_licenses=None, exclude_licenses=None):
return beta
if not include_licenses:
include = ['*']
include_licenses = ['*']
if not exclude_licenses:
exclude = []
exclude_licenses = []
licenses = flattened_licenses(licensestr, choose_licenses)
excluded = [lic for lic in licenses if exclude_license(lic)]