aboutsummaryrefslogtreecommitdiffstats
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 10:42:32 +0000
commit8df5e731a10cc9ade1266e9daaa26ec7c855c062 (patch)
tree87673333badb86a5fc8fa589a64c5ab5a986d09f /scripts
parent95bf0af5293a7f5868abd85f4fc15f5c542bfd09 (diff)
downloadopenembedded-core-contrib-8df5e731a10cc9ade1266e9daaa26ec7c855c062.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. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Ross Burton <ross.burton@intel.com>
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):
license = data['license']
if isinstance(license, dict):
license = license.get('type', None)
+ if 'MIT/X11' in license:
+ license = 'MIT'
return license
def _shrinkwrap(self, srctree, localfilesdir, extravalues, lines_before):