diff options
Diffstat (limited to 'scripts/lib/recipetool/append.py')
| -rw-r--r-- | scripts/lib/recipetool/append.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py index def4f9027c..69c8bb77a0 100644 --- a/scripts/lib/recipetool/append.py +++ b/scripts/lib/recipetool/append.py | |||
| @@ -121,7 +121,7 @@ def determine_file_source(targetpath, rd): | |||
| 121 | logger.debug('source path: %s' % srcpath) | 121 | logger.debug('source path: %s' % srcpath) |
| 122 | if not srcpath.startswith('/'): | 122 | if not srcpath.startswith('/'): |
| 123 | # Handle non-absolute path | 123 | # Handle non-absolute path |
| 124 | srcpath = os.path.abspath(os.path.join(rd.getVarFlag('do_install', 'dirs', True).split()[-1], srcpath)) | 124 | srcpath = os.path.abspath(os.path.join(rd.getVarFlag('do_install', 'dirs').split()[-1], srcpath)) |
| 125 | if srcpath.startswith(workdir): | 125 | if srcpath.startswith(workdir): |
| 126 | # OK, now we have the source file name, look for it in SRC_URI | 126 | # OK, now we have the source file name, look for it in SRC_URI |
| 127 | workdirfile = os.path.relpath(srcpath, workdir) | 127 | workdirfile = os.path.relpath(srcpath, workdir) |
| @@ -191,10 +191,10 @@ def get_source_path(cmdelements): | |||
| 191 | def get_func_deps(func, d): | 191 | def get_func_deps(func, d): |
| 192 | """Find the function dependencies of a shell function""" | 192 | """Find the function dependencies of a shell function""" |
| 193 | deps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func)) | 193 | deps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func)) |
| 194 | deps |= set((d.getVarFlag(func, "vardeps", True) or "").split()) | 194 | deps |= set((d.getVarFlag(func, "vardeps") or "").split()) |
| 195 | funcdeps = [] | 195 | funcdeps = [] |
| 196 | for dep in deps: | 196 | for dep in deps: |
| 197 | if d.getVarFlag(dep, 'func', True): | 197 | if d.getVarFlag(dep, 'func'): |
| 198 | funcdeps.append(dep) | 198 | funcdeps.append(dep) |
| 199 | return funcdeps | 199 | return funcdeps |
| 200 | 200 | ||
