summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-02-25 18:03:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-27 12:34:05 +0000
commit1f7a34c6d246c6f42ab823ffd0bd0306705ad88d (patch)
treedcf0e35085a7f4982157f0c577dfc332aad9c690
parentd1473149816674e3a3aa3f565e8b6390d2d0f1a6 (diff)
downloadopenembedded-core-contrib-1f7a34c6d246c6f42ab823ffd0bd0306705ad88d.tar.gz
license.py: Correct a comment
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/license.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py
index 79800c2b8f..8955cbdeb2 100644
--- a/meta/lib/oe/license.py
+++ b/meta/lib/oe/license.py
@@ -100,16 +100,13 @@ def flattened_licenses(licensestr, choose_licenses):
return flatten.licenses
def is_included(licensestr, include_licenses=None, exclude_licenses=None):
- """Given a license a list of list to include and a list of
- licenses to exclude, determine if the license string
- matches the an include list and does not match the
- exclude list.
-
- Returns a tuple holding the boolean state and a list of
- the applicable licenses that were excluded if state is
- False, or the licenses that were included if the state
- is True.
- """
+ """Given a license string, a list of licenses to include and a list of
+ licenses to exclude, determine if the license string matches the include
+ list and does not match the exclude list.
+
+ Returns a tuple holding the boolean state and a list of the applicable
+ licenses that were excluded if state is False, or the licenses that were
+ included if the state is True."""
def include_license(license):
return any(fnmatch(license, pattern) for pattern in include_licenses)