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 408dfc3d03..65bf5a3644 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -226,7 +226,7 @@ class Npm(FetchMethod):
226 self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest, False) 226 self._getshrinkeddependencies(obj, data['dependencies'][obj], data['dependencies'][obj]['version'], d, ud, lockdown, manifest, False)
227 return 227 return
228 outputurl = "invalid" 228 outputurl = "invalid"
229 if ('resolved' not in data) or (not data['resolved'].startswith('http')): 229 if ('resolved' not in data) or (not data['resolved'].startswith('http://') and not data['resolved'].startswith('https://')):
230 # will be the case for ${PN} 230 # will be the case for ${PN}
231 fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry) 231 fetchcmd = "npm view %s@%s dist.tarball --registry %s" % (pkg, version, ud.registry)
232 logger.debug(2, "Found this matching URL: %s" % str(fetchcmd)) 232 logger.debug(2, "Found this matching URL: %s" % str(fetchcmd))