mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
bitbake: fetch2: ssh: username and password are optional
Support URLs like ssh://HOST/PATH. They were previously not recognized due to a missing @ sign. (Bitbake rev: 1bc9f800ffc9b740cc1de0132ed04f07eadb3479) Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a2aa18bd27dac8902e52b466cb7118f71367d3dc) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b0f3d3b365
commit
7872364e9e
@@ -40,9 +40,9 @@ __pattern__ = re.compile(r'''
|
|||||||
( # Optional username/password block
|
( # Optional username/password block
|
||||||
(?P<user>\S+) # username
|
(?P<user>\S+) # username
|
||||||
(:(?P<pass>\S+))? # colon followed by the password (optional)
|
(:(?P<pass>\S+))? # colon followed by the password (optional)
|
||||||
)?
|
|
||||||
(?P<cparam>(;[^;]+)*)? # connection parameters block (optional)
|
(?P<cparam>(;[^;]+)*)? # connection parameters block (optional)
|
||||||
@
|
@
|
||||||
|
)?
|
||||||
(?P<host>\S+?) # non-greedy match of the host
|
(?P<host>\S+?) # non-greedy match of the host
|
||||||
(:(?P<port>[0-9]+))? # colon followed by the port (optional)
|
(:(?P<port>[0-9]+))? # colon followed by the port (optional)
|
||||||
/
|
/
|
||||||
|
|||||||
Reference in New Issue
Block a user