diff options
author | Chris Laplante <chris.laplante@agilent.com> | 2023-10-20 14:44:57 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-23 11:46:36 +0100 |
commit | c4205d2455c4089d42de3750c9d495bb20051abb (patch) | |
tree | 5dcbf1b8e6e761bbfa693a7a2c52f1bad1f9053d /bitbake | |
parent | 9ddd559091bf64553ff24c4dc8fda1ba15cd1e3e (diff) | |
download | poky-c4205d2455c4089d42de3750c9d495bb20051abb.tar.gz |
bitbake: codeparser: add missing 'import os'
(Bitbake rev: 302969885d37a76edec3aa79181e98f8d7e28021)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py index cb068844bb..cd39409434 100644 --- a/bitbake/lib/bb/codeparser.py +++ b/bitbake/lib/bb/codeparser.py | |||
@@ -62,6 +62,7 @@ def check_indent(codestr): | |||
62 | modulecode_deps = {} | 62 | modulecode_deps = {} |
63 | 63 | ||
64 | def add_module_functions(fn, functions, namespace): | 64 | def add_module_functions(fn, functions, namespace): |
65 | import os | ||
65 | fstat = os.stat(fn) | 66 | fstat = os.stat(fn) |
66 | fixedhash = fn + ":" + str(fstat.st_size) + ":" + str(fstat.st_mtime) | 67 | fixedhash = fn + ":" + str(fstat.st_size) + ":" + str(fstat.st_mtime) |
67 | for f in functions: | 68 | for f in functions: |