summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDaniel Wagenknecht <dwagenknecht@emlix.com>2022-03-14 10:13:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-14 13:33:35 +0000
commit7872364e9e457ed3769a2a9a92f955ec30c565fd (patch)
tree2746533832cdb06fe23ccf54c83fa0582ed40831 /bitbake
parentb0f3d3b3655fa7ef0f349318a50f7947cb40c26c (diff)
downloadpoky-7872364e9e457ed3769a2a9a92f955ec30c565fd.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py
index 2c8557e1f8..a104c9eb19 100644
--- a/bitbake/lib/bb/fetch2/ssh.py
+++ b/bitbake/lib/bb/fetch2/ssh.py
@@ -40,9 +40,9 @@ __pattern__ = re.compile(r'''
40 ( # Optional username/password block 40 ( # Optional username/password block
41 (?P<user>\S+) # username 41 (?P<user>\S+) # username
42 (:(?P<pass>\S+))? # colon followed by the password (optional) 42 (:(?P<pass>\S+))? # colon followed by the password (optional)
43 )?
44 (?P<cparam>(;[^;]+)*)? # connection parameters block (optional) 43 (?P<cparam>(;[^;]+)*)? # connection parameters block (optional)
45 @ 44 @
45 )?
46 (?P<host>\S+?) # non-greedy match of the host 46 (?P<host>\S+?) # non-greedy match of the host
47 (:(?P<port>[0-9]+))? # colon followed by the port (optional) 47 (:(?P<port>[0-9]+))? # colon followed by the port (optional)
48 / 48 /