summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2017-03-01 18:19:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 23:18:18 +0000
commitca83f35f5a561fc50b6d026a6237ee07b775b396 (patch)
tree24433ae6b27d647b6e1cb5e4609b981f1e043813 /scripts
parent13c54959dd04a9f142bc4347ea89c9bfc229d17d (diff)
downloadpoky-ca83f35f5a561fc50b6d026a6237ee07b775b396.tar.gz
create_npm.py: convert MIT/X11 to MIT
Quite a few npm packages declare MIT/X11 as their license. This is equal to a pure MIT license. (From OE-Core rev: 8df5e731a10cc9ade1266e9daaa26ec7c855c062) 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')
-rw-r--r--scripts/lib/recipetool/create_npm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index 3ba6de029c..d3fcd99deb 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -45,6 +45,8 @@ 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:
49 license = 'MIT'
48 return license 50 return license
49 51
50 def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before): 52 def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before):