aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/npmsw.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/fetch2/npmsw.py')
-rw-r--r--lib/bb/fetch2/npmsw.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch2/npmsw.py b/lib/bb/fetch2/npmsw.py
index 694994660..cdab56ea4 100644
--- a/lib/bb/fetch2/npmsw.py
+++ b/lib/bb/fetch2/npmsw.py
@@ -143,7 +143,8 @@ class NpmShrinkWrap(FetchMethod):
localpath = os.path.join(d.getVar("DL_DIR"), localfile)
# Handle local tarball and link sources
- elif version.startswith("file"):
+ # TODO: properly resolve file:, file:// and missing file: prefix
+ elif version.startswith("file:"):
localpath = version[5:]
if not version.endswith(".tgz"):
unpack = False