From: Anders Darander Date: Wed, 1 Mar 2017 17:20:01 +0000 (+0100) Subject: scripts/lib/create_npm: handle Public Domain licenses X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f573db010f88c07885143689cea6896f84e0589a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py index 72ceb953e24..158029fa046 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