summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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 = {}