summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/license.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/license.py')
-rw-r--r--meta/lib/oe/license.py3
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
28license_operator = re.compile('([&|() ])') 28license_operator_chars = '&|() '
29license_operator = re.compile('([' + license_operator_chars + '])')
29license_pattern = re.compile('[a-zA-Z0-9.+_\-]+$') 30license_pattern = re.compile('[a-zA-Z0-9.+_\-]+$')
30 31
31class LicenseVisitor(ast.NodeVisitor): 32class LicenseVisitor(ast.NodeVisitor):