]> code.ossystems Code Review - openembedded-core.git/commitdiff
license.py: Correct a comment
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 25 Feb 2022 17:03:49 +0000 (18:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Feb 2022 12:34:05 +0000 (12:34 +0000)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/license.py

index 79800c2b8f867f921899380d24e9ec94d891d9d5..8955cbdeb2495e2940028a6bbf4ec0b8baaee172 100644 (file)
@@ -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)