mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
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:
committed by
Richard Purdie
parent
1da740ef32
commit
f573db010f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user