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:24:29 +0000 (15:24 +0000)
commit92dd831a8d3397a2a434d456c1cc497471df6bd9
tree4b9c516c998ed1ebbd1ee101e80b85e5dd6f935d
parent1d22cd5d2a840ccc3935e2011642fa223e6f3455
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 '/').

(From OE-Core rev: 20d4068045c76e9dc2aff0c152dd02d6a109c9dd)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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]