summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_npm.py
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2017-03-01 18:20:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:18 +0000
commitf573db010f88c07885143689cea6896f84e0589a (patch)
treee5956089cf34eeb64803687238be38b8ffdddafb /scripts/lib/recipetool/create_npm.py
parent1da740ef3264e8f926a85127304d3b76a030ad83 (diff)
downloadpoky-f573db010f88c07885143689cea6896f84e0589a.tar.gz
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>
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
-rw-r--r--scripts/lib/recipetool/create_npm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index 72ceb953e2..158029fa04 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -60,6 +60,7 @@ class NpmRecipeHandler(RecipeHandler):
60 if license[-1] == ')': 60 if license[-1] == ')':
61 license = license[:-1] 61 license = license[:-1]
62 license = license.replace('MIT/X11', 'MIT') 62 license = license.replace('MIT/X11', 'MIT')
63 license = license.replace('Public Domain', 'PD')
63 license = license.replace('SEE LICENSE IN EULA', 64 license = license.replace('SEE LICENSE IN EULA',
64 'SEE-LICENSE-IN-EULA') 65 'SEE-LICENSE-IN-EULA')
65 return license 66 return license