bitbake/fetch/local: Also check DL_DIR for files since they could already exists there
[BUGID #533] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
857534f943
commit
ae98f7eacb
|
@ -49,6 +49,10 @@ class Local(Fetch):
|
|||
filespath = data.getVar('FILESPATH', d, 1)
|
||||
if filespath:
|
||||
newpath = bb.utils.which(filespath, path)
|
||||
if not newpath:
|
||||
dlpath = os.path.join(data.getVar('DL_DIR', d, True), path)
|
||||
if os.exists(dlpath):
|
||||
newpath = dlpath
|
||||
if not newpath:
|
||||
filesdir = data.getVar('FILESDIR', d, 1)
|
||||
if filesdir:
|
||||
|
|
Loading…
Reference in New Issue