summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorDaniel Wagenknecht <dwagenknecht@emlix.com>2022-03-02 20:50:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-04 17:24:53 +0000
commit30c21aaf3e7f27ef21de477d8f84e34d0948d653 (patch)
tree5fcdb73f3b8b389e395d463cb107e954e2d47306 /bitbake/lib/bb
parent0d6b4a93e58f72e17fe0839d3f337efafded1277 (diff)
downloadpoky-30c21aaf3e7f27ef21de477d8f84e34d0948d653.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: a2aa18bd27dac8902e52b466cb7118f71367d3dc) Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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 /