summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-03 15:28:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-08 08:00:25 +0000
commit30a5c9edc64179545bcdc0e6b184fccdb9ac5948 (patch)
tree0f0377f3c947169e5986d74dda530d79a9f8c1f2 /meta/lib
parent617e2e9413384d0530fd1b89d7509bb7d44aae54 (diff)
downloadast2050-yocto-poky-30a5c9edc64179545bcdc0e6b184fccdb9ac5948.zip
ast2050-yocto-poky-30a5c9edc64179545bcdc0e6b184fccdb9ac5948.tar.gz
classes/license: tweak license format messages
Strictly speaking not all of these characters are operators, so reword the message to describe them as separators. Also use the standard "recipename: message" format. (From OE-Core rev: 9e5da3e83f2a5d43620e07a31728b7427329d8f4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-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 340da61..31ca15b 100644
--- a/meta/lib/oe/license.py
+++ b/meta/lib/oe/license.py
@@ -25,7 +25,8 @@ class InvalidLicense(LicenseError):
def __str__(self):
return "invalid characters in license '%s'" % self.license
-license_operator = re.compile('([&|() ])')
+license_operator_chars = '&|() '
+license_operator = re.compile('([' + license_operator_chars + '])')
license_pattern = re.compile('[a-zA-Z0-9.+_\-]+$')
class LicenseVisitor(ast.NodeVisitor):
OpenPOWER on IntegriCloud