1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

bitbake: [parser] Make resolve_file only resolve the path

Do not attempt to open the file in the resolve_file method
(a lot like bb.which... maybe bb.which can be used). This way
we don't need to open/close a file which we have already parsed.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Holger Freyther
2009-05-19 13:59:50 +02:00
committed by Richard Purdie
parent 83ec5eaed4
commit 7b57ad901a
3 changed files with 11 additions and 15 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ def handle(fn, data, include):
else:
oldfile = bb.data.getVar('FILE', data)
(f, abs_fn) = resolve_file(fn, data)
abs_fn = resolve_file(fn, data)
f = open(abs_fn, 'r')
if include:
bb.parse.mark_dependency(data, abs_fn)