summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/npmsw.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py
index 36fcbfba15..cc81100b3a 100644
--- a/bitbake/lib/bb/fetch2/npmsw.py
+++ b/bitbake/lib/bb/fetch2/npmsw.py
@@ -205,7 +205,9 @@ class NpmShrinkWrap(FetchMethod):
205 # This fetcher resolves multiple URIs from a shrinkwrap file and then 205 # This fetcher resolves multiple URIs from a shrinkwrap file and then
206 # forwards it to a proxy fetcher. The management of the donestamp file, 206 # forwards it to a proxy fetcher. The management of the donestamp file,
207 # the lockfile and the checksums are forwarded to the proxy fetcher. 207 # the lockfile and the checksums are forwarded to the proxy fetcher.
208 ud.proxy = Fetch([dep["url"] for dep in ud.deps if dep["url"]], data) 208 shrinkwrap_urls = [dep["url"] for dep in ud.deps if dep["url"]]
209 if shrinkwrap_urls:
210 ud.proxy = Fetch(shrinkwrap_urls, data)
209 ud.needdonestamp = False 211 ud.needdonestamp = False
210 212
211 @staticmethod 213 @staticmethod