[oe-commits] [openembedded-core] 34/63: scripts/lib/create_npm: rewrite see license in eula

git at git.openembedded.org git at git.openembedded.org
Sat Mar 4 10:46:36 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 39127702cee80c972ee9a447ef4006751f47475e
Author: Anders Darander <anders at chargestorm.se>
AuthorDate: Wed Mar 1 18:19:59 2017 +0100

    scripts/lib/create_npm: rewrite see license in eula
    
    Rewrite the 'SEE LICENSE IN EULA' to a single string (without
    spaces), to avoid splitting the string later on.
    
    (Otherwise, each word gets split, and assumed to be a license
    on it's own.
    
    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 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index d3fcd99..3a88592 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -45,8 +45,10 @@ class NpmRecipeHandler(RecipeHandler):
             license = data['license']
             if isinstance(license, dict):
                 license = license.get('type', None)
-            if 'MIT/X11' in license:
-                license = 'MIT'
+            if license:
+                license = license.replace('MIT/X11', 'MIT')
+                license = license.replace('SEE LICENSE IN EULA',
+                                          'SEE-LICENSE-IN-EULA')
         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