diff options
author | Holger Freyther <ich@tamarin.(none)> | 2009-05-19 13:59:50 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-15 17:07:55 +0000 |
commit | 7b57ad901af2ded02995d22718ec6f280a9edd7f (patch) | |
tree | 81b9b3909460269bdd60744a255ac923775fa71c /bitbake/lib/bb/parse/parse_py/ConfHandler.py | |
parent | 83ec5eaed411225d16a4fc4dc92323e3acc9f5cd (diff) | |
download | poky-7b57ad901af2ded02995d22718ec6f280a9edd7f.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/ConfHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/ConfHandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py index 839a662024..deafd6479f 100644 --- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py +++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py | |||
@@ -84,7 +84,8 @@ def handle(fn, data, include): | |||
84 | else: | 84 | else: |
85 | oldfile = bb.data.getVar('FILE', data) | 85 | oldfile = bb.data.getVar('FILE', data) |
86 | 86 | ||
87 | (f, abs_fn) = resolve_file(fn, data) | 87 | abs_fn = resolve_file(fn, data) |
88 | f = open(abs_fn, 'r') | ||
88 | 89 | ||
89 | if include: | 90 | if include: |
90 | bb.parse.mark_dependency(data, abs_fn) | 91 | bb.parse.mark_dependency(data, abs_fn) |