diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 16:25:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-17 17:41:54 +0000 |
commit | a906c94328b040d5076571bd593b57be7ee403a5 (patch) | |
tree | 5c4db06cd60330b9244d2a1cb3c94e589a120c5f /lib/bb/data.py | |
parent | 42d9db0cc80ed45d769f843ccb51e0c194ec557b (diff) | |
download | bitbake-contrib-a906c94328b040d5076571bd593b57be7ee403a5.tar.gz |
data: Ensure emit_func honours vardeps flag
Currently, calling a shell function using exec_func may result in
dependent functions being missing, if the shell parser can't detect
the dependency, even if it was specified with the vardeps flag.
This patch ensures the function looks at the flag and considers it
when deciding which other functions need to be output.
[YOCTO #3561]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index dc5a425d1..478a482d8 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -260,6 +260,7 @@ def emit_func(func, o=sys.__stdout__, d = init()): emit_var(func, o, d, False) and o.write('\n') newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func, True)) + newdeps |= set((d.getVarFlag(func, "vardeps", True) or "").split()) seen = set() while newdeps: deps = newdeps |