From: Richard Purdie Date: Fri, 25 Feb 2022 08:33:06 +0000 (+0000) Subject: licenses: Fix logic error introduced in rename X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~5085 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b01e10b27d23ea1b4ac58376c2423505a70832d6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git licenses: Fix logic error introduced in rename The previous commit introduced a small logic error. Fix the renaming issue. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index b1105f6149c..79800c2b8f8 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): 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)]