[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4938/8267] scripts/lib/create_npm: handle Public Domain licenses



commit f573db010f88c07885143689cea6896f84e0589a
Author: Anders Darander <anders chargestorm se>
Date:   Wed Mar 1 18:20:01 2017 +0100

    scripts/lib/create_npm: handle Public Domain licenses
    
    Rewrite Public Domain as PD, as that's what the place holder in
    meta/files/common_licenses is called.
    
    (From OE-Core rev: d7f0af5aa90a9ef7714c842fb4cb762017820768)
    
    Signed-off-by: Anders Darander <anders chargestorm se>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/lib/recipetool/create_npm.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index 72ceb95..158029f 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -60,6 +60,7 @@ class NpmRecipeHandler(RecipeHandler):
                     if license[-1] == ')':
                         license = license[:-1]
                 license = license.replace('MIT/X11', 'MIT')
+                license = license.replace('Public Domain', 'PD')
                 license = license.replace('SEE LICENSE IN EULA',
                                           'SEE-LICENSE-IN-EULA')
         return license


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]