summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_npm.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create_npm.py')
-rw-r--r--scripts/lib/recipetool/create_npm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index ffbcb4905c..fcc0172af8 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -128,7 +128,7 @@ class NpmRecipeHandler(RecipeHandler):
128 license = self._handle_license(data) 128 license = self._handle_license(data)
129 if license: 129 if license:
130 licenses['${PN}'] = license 130 licenses['${PN}'] = license
131 for pkgname, pkgitem in npmpackages.iteritems(): 131 for pkgname, pkgitem in npmpackages.items():
132 _, pdata = pkgitem 132 _, pdata = pkgitem
133 license = self._handle_license(pdata) 133 license = self._handle_license(pdata)
134 if license: 134 if license:
@@ -136,7 +136,7 @@ class NpmRecipeHandler(RecipeHandler):
136 # Now write out the package-specific license values 136 # Now write out the package-specific license values
137 # We need to strip out the json data dicts for this since split_pkg_licenses 137 # We need to strip out the json data dicts for this since split_pkg_licenses
138 # isn't expecting it 138 # isn't expecting it
139 packages = OrderedDict((x,y[0]) for x,y in npmpackages.iteritems()) 139 packages = OrderedDict((x,y[0]) for x,y in npmpackages.items())
140 packages['${PN}'] = '' 140 packages['${PN}'] = ''
141 pkglicenses = split_pkg_licenses(licvalues, packages, lines_after, licenses) 141 pkglicenses = split_pkg_licenses(licvalues, packages, lines_after, licenses)
142 all_licenses = list(set([item for pkglicense in pkglicenses.values() for item in pkglicense])) 142 all_licenses = list(set([item for pkglicense in pkglicenses.values() for item in pkglicense]))