summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/ssh.py
diff options
context:
space:
mode:
authorDaniel Wagenknecht <dwagenknecht@emlix.com>2022-03-02 20:50:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-04 17:24:53 +0000
commit5937b2e07306ec77c14a98dc90f011dd8c90e92e (patch)
tree2f40c262359247c58a453d5340d00dc9f0ae67fd /bitbake/lib/bb/fetch2/ssh.py
parent30c21aaf3e7f27ef21de477d8f84e34d0948d653 (diff)
downloadpoky-5937b2e07306ec77c14a98dc90f011dd8c90e92e.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/fetch2/ssh.py')
-rw-r--r--bitbake/lib/bb/fetch2/ssh.py5
1 files changed, 5 insertions, 0 deletions
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):
96 fr += '@%s' % host 96 fr += '@%s' % host
97 else: 97 else:
98 fr = host 98 fr = host
99
100 if path[0] != '~':
101 path = '/%s' % path
102 path = path.replace("%3A", ":")
103
99 fr += ':%s' % path 104 fr += ':%s' % path
100 105
101 cmd = 'scp -B -r %s %s %s/' % ( 106 cmd = 'scp -B -r %s %s %s/' % (