summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-10-28 15:55:07 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-01 11:12:16 +0000
commita3a26e500a104ff6281f11c9846ec971526b190b (patch)
tree27fb3166f1f76fccbcea3c31e45e4fdfd78dc7de /bitbake
parentc94075d623685b2b9d709841a2012d72580f0f04 (diff)
downloadpoky-a3a26e500a104ff6281f11c9846ec971526b190b.tar.gz
bitbake: fetch2: npmsw: Add support for duplicate dependencies without url
(Bitbake rev: 9dcd9a3c671b24982aff9a994e31cb9f491471f5) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/npmsw.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py
index 426a139653..cfdfdae060 100644
--- a/bitbake/lib/bb/fetch2/npmsw.py
+++ b/bitbake/lib/bb/fetch2/npmsw.py
@@ -88,7 +88,11 @@ class NpmShrinkWrap(FetchMethod):
88 version = params.get("version", None) 88 version = params.get("version", None)
89 89
90 # Handle registry sources 90 # Handle registry sources
91 if is_semver(version) and resolved and integrity: 91 if is_semver(version) and integrity:
92 # Handle duplicate dependencies without url
93 if not resolved:
94 return
95
92 localfile = npm_localfile(name, version) 96 localfile = npm_localfile(name, version)
93 97
94 uri = URI(resolved) 98 uri = URI(resolved)