Skip to contentSkip to conversation

data: Ensure dependencies of subfunctions are accounted for

PATCH New Richard Purdie 1 participant 1 message May 19, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

bitbake/lib/bb/data.py +1 -0
index abf210a..87c4808 100644
@@ -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):