scripts/lib/create_npm: handle Public Domain licenses

Rewrite Public Domain as PD, as that's what the place holder in
meta/files/common_licenses is called.

(From OE-Core rev: d7f0af5aa90a9ef7714c842fb4cb762017820768)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Anders Darander 2017-03-01 18:20:01 +01:00 committed by Richard Purdie
parent 1da740ef32
commit f573db010f
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class NpmRecipeHandler(RecipeHandler):
if license[-1] == ')':
license = license[:-1]
license = license.replace('MIT/X11', 'MIT')
license = license.replace('Public Domain', 'PD')
license = license.replace('SEE LICENSE IN EULA',
'SEE-LICENSE-IN-EULA')
return license