summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-11-13 07:26:21 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-13 07:28:55 +0800
commitae98f7eacb9e61fe086d88dc694b4c651af9fee3 (patch)
tree653eb34c0f293e708247210665bf165a7432391e /bitbake/lib/bb
parent857534f94308def5c014ad200312143f9a0e6e4c (diff)
downloadopenembedded-core-ae98f7eacb9e61fe086d88dc694b4c651af9fee3.tar.gz
openembedded-core-ae98f7eacb9e61fe086d88dc694b4c651af9fee3.tar.bz2
openembedded-core-ae98f7eacb9e61fe086d88dc694b4c651af9fee3.tar.xz
openembedded-core-ae98f7eacb9e61fe086d88dc694b4c651af9fee3.zip
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>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch/local.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/local.py b/bitbake/lib/bb/fetch/local.py
index 882a2c460..3553f37a7 100644
--- a/bitbake/lib/bb/fetch/local.py
+++ b/bitbake/lib/bb/fetch/local.py
@@ -50,6 +50,10 @@ class Local(Fetch):
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:
newpath = os.path.join(filesdir, path)