summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/npmsw.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/npmsw.py')
-rw-r--r--bitbake/lib/bb/fetch2/npmsw.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py
index 4ff2c8ffc3..ff5f8dc755 100644
--- a/bitbake/lib/bb/fetch2/npmsw.py
+++ b/bitbake/lib/bb/fetch2/npmsw.py
@@ -191,7 +191,9 @@ class NpmShrinkWrap(FetchMethod):
191 else: 191 else:
192 raise ParameterError("Unsupported dependency: %s" % name, ud.url) 192 raise ParameterError("Unsupported dependency: %s" % name, ud.url)
193 193
194 # name is needed by unpack tracer for module mapping
194 ud.deps.append({ 195 ud.deps.append({
196 "name": name,
195 "url": url, 197 "url": url,
196 "localpath": localpath, 198 "localpath": localpath,
197 "extrapaths": extrapaths, 199 "extrapaths": extrapaths,
@@ -270,6 +272,7 @@ class NpmShrinkWrap(FetchMethod):
270 destsuffix = ud.parm.get("destsuffix") 272 destsuffix = ud.parm.get("destsuffix")
271 if destsuffix: 273 if destsuffix:
272 destdir = os.path.join(rootdir, destsuffix) 274 destdir = os.path.join(rootdir, destsuffix)
275 ud.unpack_tracer.unpack("npm-shrinkwrap", destdir)
273 276
274 bb.utils.mkdirhier(destdir) 277 bb.utils.mkdirhier(destdir)
275 bb.utils.copyfile(ud.shrinkwrap_file, 278 bb.utils.copyfile(ud.shrinkwrap_file,