def get_build_chain(deps, build_root):
  """
  Get the full depth list of builds depending from a build node.
  """
  build_chain = [build_root]
  if build_root in deps:
    for dep in deps[build_root]:
      build_chain.extend(get_build_chain(deps, dep))
  return build_chain