diff options
author | Anders Darander <anders@chargestorm.se> | 2017-03-01 18:19:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:32 +0000 |
commit | 8df5e731a10cc9ade1266e9daaa26ec7c855c062 (patch) | |
tree | 87673333badb86a5fc8fa589a64c5ab5a986d09f /scripts | |
parent | 95bf0af5293a7f5868abd85f4fc15f5c542bfd09 (diff) | |
download | openembedded-core-8df5e731a10cc9ade1266e9daaa26ec7c855c062.tar.gz openembedded-core-8df5e731a10cc9ade1266e9daaa26ec7c855c062.tar.bz2 openembedded-core-8df5e731a10cc9ade1266e9daaa26ec7c855c062.zip |
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.py | 2 |
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): |