summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-10-28 14:41:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-01 11:12:16 +0000
commite17d4895ca069d3d5b268f8be561c3651c132b5c (patch)
tree87855101de3d7a53b706f672361500f80e8c1b89 /bitbake
parenta3a26e500a104ff6281f11c9846ec971526b190b (diff)
downloadpoky-e17d4895ca069d3d5b268f8be561c3651c132b5c.tar.gz
bitbake: fetch2: npmsw: Add support for github prefix in npm shrinkwrap version
(Bitbake rev: 1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43) 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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py
index cfdfdae060..879ba5de0f 100644
--- a/bitbake/lib/bb/fetch2/npmsw.py
+++ b/bitbake/lib/bb/fetch2/npmsw.py
@@ -131,6 +131,8 @@ class NpmShrinkWrap(FetchMethod):
131 131
132 # Handle git sources 132 # Handle git sources
133 elif version.startswith("git"): 133 elif version.startswith("git"):
134 if version.startswith("github:"):
135 version = "git+https://github.com/" + version[len("github:"):]
134 regex = re.compile(r""" 136 regex = re.compile(r"""
135 ^ 137 ^
136 git\+ 138 git\+