bitbake: fetch2/sftp: Fix fetching URIs with spaces

Spaces can be used in URIs with %20, but the URI needs to be quoted.

(Bitbake rev: 0f887589c279ce07692b4d8e118954a9d214ca45)

Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Daniel Ammann
2023-03-17 18:03:54 +01:00
committed by Richard Purdie
parent f14328c22f
commit 92993b4f77

View File

@@ -103,7 +103,7 @@ class SFTP(FetchMethod):
if path[:3] == '/~/':
path = path[3:]
remote = '%s%s:%s' % (user, urlo.hostname, path)
remote = '"%s%s:%s"' % (user, urlo.hostname, path)
cmd = '%s %s %s %s' % (basecmd, port, remote, lpath)