]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/lib/create_npm: handle Public Domain licenses
authorAnders Darander <anders@chargestorm.se>
Wed, 1 Mar 2017 17:20:01 +0000 (18:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 Mar 2017 10:42:32 +0000 (10:42 +0000)
Rewrite Public Domain as PD, as that's what the place holder in
meta/files/common_licenses is called.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/recipetool/create_npm.py

index 72ceb953e243ac0ef845209f96e99451b6625d34..158029fa04640f3d226589d9723dd1c528d4b652 100644 (file)
@@ -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