diff options
author | Anders Darander <anders@chargestorm.se> | 2017-03-01 18:20:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-04 10:42:32 +0000 |
commit | d7f0af5aa90a9ef7714c842fb4cb762017820768 (patch) | |
tree | ba33925e6a6a2b23202a060e416c22c534ab8577 /scripts | |
parent | c0cfd9b1d54b05ad048f444d6fe248aa0500159e (diff) | |
download | openembedded-core-d7f0af5aa90a9ef7714c842fb4cb762017820768.tar.gz openembedded-core-d7f0af5aa90a9ef7714c842fb4cb762017820768.tar.bz2 openembedded-core-d7f0af5aa90a9ef7714c842fb4cb762017820768.zip |
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.
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | 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 72ceb953e2..158029fa04 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 |