summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/npm.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/npm.py')
-rw-r--r--bitbake/lib/bb/fetch2/npm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 7d5e8913fb..46644f1bba 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -175,7 +175,7 @@ class Npm(FetchMethod):
175 def _getshrinkeddependencies(self, pkg, data, version, d, ud, lockdown, manifest): 175 def _getshrinkeddependencies(self, pkg, data, version, d, ud, lockdown, manifest):
176 logger.debug(2, "NPM shrinkwrap file is %s" % data) 176 logger.debug(2, "NPM shrinkwrap file is %s" % data)
177 outputurl = "invalid" 177 outputurl = "invalid"
178 if ('resolved' not in data): 178 if ('resolved' not in data) or (not data['resolved'].startswith('http')):
179 # will be the case for ${PN} 179 # will be the case for ${PN}
180 fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry) 180 fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry)
181 logger.debug(2, "Found this matching URL: %s" % str(fetchcmd)) 181 logger.debug(2, "Found this matching URL: %s" % str(fetchcmd))