diff options
Diffstat (limited to 'meta')
-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) |