From: Richard Purdie Date: Fri, 12 Nov 2010 23:26:21 +0000 (+0800) Subject: bitbake/fetch/local: Also check DL_DIR for files since they could already exists... X-Git-Tag: 2011-1~4098 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ae98f7eacb9e61fe086d88dc694b4c651af9fee3;p=openembedded-core.git bitbake/fetch/local: Also check DL_DIR for files since they could already exists there [BUGID #533] Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch/local.py b/bitbake/lib/bb/fetch/local.py index 882a2c4602..3553f37a7a 100644 --- a/bitbake/lib/bb/fetch/local.py +++ b/bitbake/lib/bb/fetch/local.py @@ -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: