diff options
Diffstat (limited to 'meta/lib/oe/license.py')
-rw-r--r-- | meta/lib/oe/license.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index 340da61102..31ca15b574 100644 --- a/meta/lib/oe/license.py +++ b/meta/lib/oe/license.py | |||
@@ -25,7 +25,8 @@ class InvalidLicense(LicenseError): | |||
25 | def __str__(self): | 25 | def __str__(self): |
26 | return "invalid characters in license '%s'" % self.license | 26 | return "invalid characters in license '%s'" % self.license |
27 | 27 | ||
28 | license_operator = re.compile('([&|() ])') | 28 | license_operator_chars = '&|() ' |
29 | license_operator = re.compile('([' + license_operator_chars + '])') | ||
29 | license_pattern = re.compile('[a-zA-Z0-9.+_\-]+$') | 30 | license_pattern = re.compile('[a-zA-Z0-9.+_\-]+$') |
30 | 31 | ||
31 | class LicenseVisitor(ast.NodeVisitor): | 32 | class LicenseVisitor(ast.NodeVisitor): |