From 02f8ea68657c159486940be9d59391745c517858 Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Mon, 9 Dec 2024 11:31:57 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/npmsw.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py index a5fa598deb..558c9a2b07 100644 --- a/bitbake/lib/bb/fetch2/npmsw.py +++ b/bitbake/lib/bb/fetch2/npmsw.py @@ -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", {}), []) -- cgit v1.2.3-54-g00ecf