bitbake: fetch/local: Allow preservation of path components in relative file:// urls
This enhances the fetcher to allow preservation of the path component in urls like: file://xxx/yyy/somefile.patch. (Bitbake rev: e49a656a499355a5c6e7eb00bf5b8f1795e8dddb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c74f3d44c6
commit
8febf64b1d
|
@ -60,9 +60,10 @@ class Local(FetchMethod):
|
||||||
filesdir = data.getVar('FILESDIR', d, True)
|
filesdir = data.getVar('FILESDIR', d, True)
|
||||||
if filesdir:
|
if filesdir:
|
||||||
newpath = os.path.join(filesdir, path)
|
newpath = os.path.join(filesdir, path)
|
||||||
if not os.path.exists(newpath) and path.find("*") == -1:
|
if not os.path.exists(newpath) and path.find("*") == -1:
|
||||||
dldirfile = os.path.join(data.getVar("DL_DIR", d, True), os.path.basename(path))
|
dldirfile = os.path.join(d.getVar("DL_DIR", True), path)
|
||||||
return dldirfile
|
bb.utils.mkdirhier(os.path.dirname(dldirfile))
|
||||||
|
return dldirfile
|
||||||
return newpath
|
return newpath
|
||||||
|
|
||||||
def need_update(self, url, ud, d):
|
def need_update(self, url, ud, d):
|
||||||
|
|
Loading…
Reference in New Issue