diff options
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index eee8d9cddb..c5005aec9a 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -62,9 +62,9 @@ def update_mtime(f): | |||
62 | def mark_dependency(d, f): | 62 | def mark_dependency(d, f): |
63 | if f.startswith('./'): | 63 | if f.startswith('./'): |
64 | f = "%s/%s" % (os.getcwd(), f[2:]) | 64 | f = "%s/%s" % (os.getcwd(), f[2:]) |
65 | deps = bb.data.getVar('__depends', d) or set() | 65 | deps = d.getVar('__depends') or set() |
66 | deps.update([(f, cached_mtime(f))]) | 66 | deps.update([(f, cached_mtime(f))]) |
67 | bb.data.setVar('__depends', deps, d) | 67 | d.setVar('__depends', deps) |
68 | 68 | ||
69 | def supports(fn, data): | 69 | def supports(fn, data): |
70 | """Returns true if we have a handler for this file, false otherwise""" | 70 | """Returns true if we have a handler for this file, false otherwise""" |
@@ -90,7 +90,7 @@ def init_parser(d): | |||
90 | 90 | ||
91 | def resolve_file(fn, d): | 91 | def resolve_file(fn, d): |
92 | if not os.path.isabs(fn): | 92 | if not os.path.isabs(fn): |
93 | bbpath = bb.data.getVar("BBPATH", d, True) | 93 | bbpath = d.getVar("BBPATH", True) |
94 | newfn = bb.utils.which(bbpath, fn) | 94 | newfn = bb.utils.which(bbpath, fn) |
95 | if not newfn: | 95 | if not newfn: |
96 | raise IOError("file %s not found in %s" % (fn, bbpath)) | 96 | raise IOError("file %s not found in %s" % (fn, bbpath)) |