summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-08-24 00:14:48 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 13:48:50 +0100
commit58057d8749a827da46db23e501684cf8eea2842d (patch)
treec7c13785752ad0f9edd7656568cdf8f885f555ce /scripts/lib
parent433aa81f920317df863e74af139b4bfec629eac2 (diff)
downloadpoky-58057d8749a827da46db23e501684cf8eea2842d.tar.gz
recipetool: create: fix npm license code regression
OE-Core commit 1df60b09f7a60427795ec828c9c7180e4e52f98c caused a regression in npm handling since it still expected to be able to get the results of the license handling, but this no longer happens until after the npm plugin is called. Thus, call the license handling function ourselves here (which will record this as having been handled so it doesn't get done again later). (From OE-Core rev: 3e408aadaea85b6f192b34d37d508cbaf3cd7164) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create_npm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index 6252e915b5..ae5397262e 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -208,11 +208,14 @@ class NpmRecipeHandler(RecipeHandler):
208 208
209 # Split each npm module out to is own package 209 # Split each npm module out to is own package
210 npmpackages = oe.package.npm_split_package_dirs(srctree) 210 npmpackages = oe.package.npm_split_package_dirs(srctree)
211 licvalues = None
211 for item in handled: 212 for item in handled:
212 if isinstance(item, tuple): 213 if isinstance(item, tuple):
213 if item[0] == 'license': 214 if item[0] == 'license':
214 licvalues = item[1] 215 licvalues = item[1]
215 break 216 break
217 if not licvalues:
218 licvalues = handle_license_vars(srctree, lines_before, handled, extravalues, d)
216 if licvalues: 219 if licvalues:
217 # Augment the license list with information we have in the packages 220 # Augment the license list with information we have in the packages
218 licenses = {} 221 licenses = {}