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 <dwagenknecht@emlix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Daniel Wagenknecht
2022-03-02 20:50:34 +01:00
committed by Richard Purdie
parent 30c21aaf3e
commit 5937b2e073

View File

@@ -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/' % (