summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorLeif Middelschulte <leif.middelschulte@klsmartin.com>2020-09-24 15:07:18 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-25 08:32:02 +0100
commitb1dff146a66e4a8da194205de1210572d8929192 (patch)
tree6f80926480b6a15ead264754fee9321e29d60226 /bitbake
parentbefe6d2cecacf8d43f2ae0cd697d4479af6fef95 (diff)
downloadpoky-b1dff146a66e4a8da194205de1210572d8929192.tar.gz
bitbake: fetch2: fix handling of `\` in file:// SRC_URI
Using backslashes in file:// URIs was broken. Either the resolver would fail or the subsequent `cp` command. Try to avoid this by putting the filenames into quotes. Fixes https://bugzilla.yoctoproject.org/show_bug.cgi?id=8161 (Bitbake rev: aa857fa2e9cf3b0e43a9049b04ec4b0b3c779b11) Signed-off-by: Leif Middelschulte <leif.middelschulte@klsmartin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 7ec1fea5d0..551bfb70f2 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1520,7 +1520,7 @@ class FetchMethod(object):
1520 if urlpath.find("/") != -1: 1520 if urlpath.find("/") != -1:
1521 destdir = urlpath.rsplit("/", 1)[0] + '/' 1521 destdir = urlpath.rsplit("/", 1)[0] + '/'
1522 bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir)) 1522 bb.utils.mkdirhier("%s/%s" % (unpackdir, destdir))
1523 cmd = 'cp -fpPRH %s %s' % (file, destdir) 1523 cmd = 'cp -fpPRH "%s" "%s"' % (file, destdir)
1524 1524
1525 if not cmd: 1525 if not cmd:
1526 return 1526 return