summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create_npm.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index d3fcd99deb..3a88592b73 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -45,8 +45,10 @@ class NpmRecipeHandler(RecipeHandler):
45 license = data['license'] 45 license = data['license']
46 if isinstance(license, dict): 46 if isinstance(license, dict):
47 license = license.get('type', None) 47 license = license.get('type', None)
48 if 'MIT/X11' in license: 48 if license:
49 license = 'MIT' 49 license = license.replace('MIT/X11', 'MIT')
50 license = license.replace('SEE LICENSE IN EULA',
51 'SEE-LICENSE-IN-EULA')
50 return license 52 return license
51 53
52 def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before): 54 def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before):