summaryrefslogtreecommitdiffstats
path: root/lib/bb/data.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-19 13:16:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-20 23:54:42 +0100
commit658008cc6a8acd5c1f26877c9444c96002db01e7 (patch)
treeab12ec08f53238005adfaf587a7aaa7136279323 /lib/bb/data.py
parent565b3e31e0226c6e193ee0b031bd5e7bef25591e (diff)
downloadbitbake-contrib-658008cc6a8acd5c1f26877c9444c96002db01e7.tar.gz
data: Ensure dependencies of subfunctions are accounted for
Currently we account of the top level function's vardeps but not those of any subfunction. This would imply we'd have to manually write the dependencies of all parent functions which would be crazy. This patch adds the dependencies to fix the issue. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r--lib/bb/data.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index abf210aa6..87c4808b5 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -274,6 +274,7 @@ def emit_func(func, o=sys.__stdout__, d = init()):
if d.getVarFlag(dep, "func"):
emit_var(dep, o, d, False) and o.write('\n')
newdeps |= bb.codeparser.ShellParser(dep, logger).parse_shell(d.getVar(dep, True))
+ newdeps |= set((d.getVarFlag(dep, "vardeps", True) or "").split())
newdeps -= seen
def update_data(d):