diff options
| author | BELOUARGA Mohamed <m.belouarga@technologyandstrategy.com> | 2023-06-04 03:39:18 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-29 11:10:39 +0100 |
| commit | d3642c2d102787cd3b12a5ad319b37a3d58220b1 (patch) | |
| tree | 4ea4a9e3cc25c44bab1bf5a6c8be3a5f3ef460b8 | |
| parent | d988d3157886e044358547bf1f504b86c9f560c7 (diff) | |
| download | poky-d3642c2d102787cd3b12a5ad319b37a3d58220b1.tar.gz | |
bitbake: fetch2/npmsw: Don't fetch dev dependencies when they are not demanded
Dev dependencies should not be fetched only if it is specified in the
recipe.
(Bitbake rev: 224c2bb1fd3f16ac4063dc0eb8ba43eee34ba782)
Signed-off-by: BELOUARGA Mohamed <m.belouarga@technologyandstrategy.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/fetch2/npmsw.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py index 359192a29e..d89be10caf 100644 --- a/bitbake/lib/bb/fetch2/npmsw.py +++ b/bitbake/lib/bb/fetch2/npmsw.py | |||
| @@ -49,6 +49,8 @@ def foreach_dependencies(shrinkwrap, callback=None, dev=False): | |||
| 49 | if package != "": | 49 | if package != "": |
| 50 | name = package.split('node_modules/')[-1] | 50 | name = package.split('node_modules/')[-1] |
| 51 | package_infos = packages.get(package, {}) | 51 | package_infos = packages.get(package, {}) |
| 52 | if dev == False and package_infos.get("dev", False): | ||
| 53 | continue | ||
| 52 | callback(name, package_infos, package) | 54 | callback(name, package_infos, package) |
| 53 | 55 | ||
| 54 | class NpmShrinkWrap(FetchMethod): | 56 | class NpmShrinkWrap(FetchMethod): |
