[oe-commits] [openembedded-core] 32/63: create_npm.py: convert MIT/X11 to MIT
git at git.openembedded.org
git at git.openembedded.org
Sat Mar 4 10:46:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 8df5e731a10cc9ade1266e9daaa26ec7c855c062
Author: Anders Darander <anders at chargestorm.se>
AuthorDate: Wed Mar 1 18:19:56 2017 +0100
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 at chargestorm.se>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/recipetool/create_npm.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index 3ba6de0..d3fcd99 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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list