diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-02-03 15:28:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-07 13:30:57 +0000 |
commit | 9e5da3e83f2a5d43620e07a31728b7427329d8f4 (patch) | |
tree | 73dbe16a0d2bbd501de499408a9092e6aac09144 /meta/lib/oe/license.py | |
parent | d4adf9ac1b8318d4eb3f1c8dd82bbf04c6908eb5 (diff) | |
download | openembedded-core-9e5da3e83f2a5d43620e07a31728b7427329d8f4.tar.gz openembedded-core-9e5da3e83f2a5d43620e07a31728b7427329d8f4.tar.bz2 openembedded-core-9e5da3e83f2a5d43620e07a31728b7427329d8f4.zip |
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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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): 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): |