From: Anders Darander Date: Wed, 1 Mar 2017 17:19:56 +0000 (+0100) Subject: create_npm.py: convert MIT/X11 to MIT X-Git-Tag: uninative-1.5~34 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=8df5e731a10cc9ade1266e9daaa26ec7c855c062;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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):