diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 08:33:06 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 12:45:41 +0000 |
| commit | 2a06ab3eb886d6981c42fd766ab2f2d6e89cdfd1 (patch) | |
| tree | f899453bd2947a27a5836e00b6100dd00287e786 /meta/lib/oe | |
| parent | 18f40dfdfd81d0a08ad31fbe33815477190fa1b6 (diff) | |
| download | poky-2a06ab3eb886d6981c42fd766ab2f2d6e89cdfd1.tar.gz | |
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>
Diffstat (limited to 'meta/lib/oe')
| -rw-r--r-- | meta/lib/oe/license.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index b1105f6149..79800c2b8f 100644 --- a/meta/lib/oe/license.py +++ b/meta/lib/oe/license.py | |||
| @@ -135,10 +135,10 @@ def is_included(licensestr, include_licenses=None, exclude_licenses=None): | |||
| 135 | return beta | 135 | return beta |
| 136 | 136 | ||
| 137 | if not include_licenses: | 137 | if not include_licenses: |
| 138 | include = ['*'] | 138 | include_licenses = ['*'] |
| 139 | 139 | ||
| 140 | if not exclude_licenses: | 140 | if not exclude_licenses: |
| 141 | exclude = [] | 141 | exclude_licenses = [] |
| 142 | 142 | ||
| 143 | licenses = flattened_licenses(licensestr, choose_licenses) | 143 | licenses = flattened_licenses(licensestr, choose_licenses) |
| 144 | excluded = [lic for lic in licenses if exclude_license(lic)] | 144 | excluded = [lic for lic in licenses if exclude_license(lic)] |
