mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ba9461372d
commit
9da87f1119
@@ -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.
|
||||
"""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.
|
||||
"""
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user