diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-02-25 18:03:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-27 12:34:40 +0000 |
commit | 9da87f1119188499791d0b391db85d115f0ed237 (patch) | |
tree | 53636f3ab15d55e6f2d12422a0f2b27540b1c40c /meta/lib/oe | |
parent | ba9461372d64e5fac80a573cbd2ab68d4eab731d (diff) | |
download | poky-9da87f1119188499791d0b391db85d115f0ed237.tar.gz |
license.py: Correct a comment
(From OE-Core rev: 1f7a34c6d246c6f42ab823ffd0bd0306705ad88d)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/license.py | 17 |
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): | |||
100 | return flatten.licenses | 100 | return flatten.licenses |
101 | 101 | ||
102 | def is_included(licensestr, include_licenses=None, exclude_licenses=None): | 102 | def is_included(licensestr, include_licenses=None, exclude_licenses=None): |
103 | """Given a license a list of list to include and a list of | 103 | """Given a license string, a list of licenses to include and a list of |
104 | licenses to exclude, determine if the license string | 104 | licenses to exclude, determine if the license string matches the include |
105 | matches the an include list and does not match the | 105 | list and does not match the exclude list. |
106 | exclude list. | 106 | |
107 | 107 | Returns a tuple holding the boolean state and a list of the applicable | |
108 | Returns a tuple holding the boolean state and a list of | 108 | licenses that were excluded if state is False, or the licenses that were |
109 | the applicable licenses that were excluded if state is | 109 | included if the state is True.""" |
110 | False, or the licenses that were included if the state | ||
111 | is True. | ||
112 | """ | ||
113 | 110 | ||
114 | def include_license(license): | 111 | def include_license(license): |
115 | return any(fnmatch(license, pattern) for pattern in include_licenses) | 112 | return any(fnmatch(license, pattern) for pattern in include_licenses) |