summaryrefslogtreecommitdiffstats
path: root/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:44 +0000
commitdf5505a1ba15524c3a185360d687854300aef342 (patch)
treeae1aca8c23370fb689b25d420d7f042e9b20f01a /lib/bb/fetch2/ssh.py
parenta2aa18bd27dac8902e52b466cb7118f71367d3dc (diff)
downloadbitbake-df5505a1ba15524c3a185360d687854300aef342.tar.gz
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). Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/ssh.py')
-rw-r--r--lib/bb/fetch2/ssh.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bb/fetch2/ssh.py b/lib/bb/fetch2/ssh.py
index a104c9eb1..a985de4ce 100644
--- a/lib/bb/fetch2/ssh.py
+++ b/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/' % (