diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-28 14:41:43 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-01 11:12:16 +0000 |
commit | e17d4895ca069d3d5b268f8be561c3651c132b5c (patch) | |
tree | 87855101de3d7a53b706f672361500f80e8c1b89 /bitbake | |
parent | a3a26e500a104ff6281f11c9846ec971526b190b (diff) | |
download | poky-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.py | 2 |
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\+ |