1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

bitbake: fetch2: npmsw: ignore bundled dependencies in packages

The npm package lock and shrinkwrap file list bundled dependencies which
are supplied together with the parent dependency. The flag depends on
the lock file version. Add the missing `inBundle` flag to packages list
processing.

(Bitbake rev: 042d7121ddc93c18306bf03d26ea774f66379a90)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Stefan Herbrechtsmeier
2024-12-09 11:31:57 +01:00
committed by Richard Purdie
parent 527e4a7958
commit 02f8ea6865
+2
View File
@@ -66,6 +66,8 @@ def foreach_dependencies(shrinkwrap, callback=None, dev=False):
package_infos = packages.get(package, {})
if dev == False and package_infos.get("dev", False):
continue
elif package_infos.get("inBundle", False):
continue
callback(name, package_infos, package)
else:
_walk_deps(shrinkwrap.get("dependencies", {}), [])