]> code.ossystems Code Review - openembedded-core.git/commit
license: split license parsing into oe.license
authorChristopher Larson <kergoth@gmail.com>
Mon, 5 Dec 2011 01:03:37 +0000 (20:03 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2011 15:23:00 +0000 (15:23 +0000)
commit20d4068045c76e9dc2aff0c152dd02d6a109c9dd
tree81733d8d174cc5d2951a874d599bfcdaaedc6b99
parent36cc35b4cbb91049a63daa7c915f538047db0f76
license: split license parsing into oe.license

In addition to moving this functionality to oe.license, makes the string
preparation more picky before passing it off to the ast compilation. This
ensures that LICENSE entries like 'GPL/BSD' are seen as invalid (due to the
presence of the unsupported '/').

Signed-off-by: Christopher Larson <kergoth@gmail.com>
meta/classes/license.bbclass
meta/lib/oe/license.py [new file with mode: 0644]
meta/lib/oe/tests/test_license.py [new file with mode: 0644]