From 5937b2e07306ec77c14a98dc90f011dd8c90e92e Mon Sep 17 00:00:00 2001 From: Daniel Wagenknecht Date: Wed, 2 Mar 2022 20:50:34 +0100 Subject: bitbake: fetch2: ssh: fix path handling Fix absolute paths and paths containing the ":" character. Both is necessary for supporting sstate mirrors via ssh (not implemented yet). (Bitbake rev: df5505a1ba15524c3a185360d687854300aef342) Signed-off-by: Daniel Wagenknecht Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/ssh.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitbake/lib/bb/fetch2') diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index a104c9eb19..a985de4ce0 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py @@ -96,6 +96,11 @@ class SSH(FetchMethod): fr += '@%s' % host else: fr = host + + if path[0] != '~': + path = '/%s' % path + path = path.replace("%3A", ":") + fr += ':%s' % path cmd = 'scp -B -r %s %s %s/' % ( -- cgit v1.2.3-54-g00ecf