# File lib/puppet/transaction.rb, line 165
165:   def failed_dependencies?(resource)
166:     # First make sure there are no failed dependencies.  To do this,
167:     # we check for failures in any of the vertexes above us.  It's not
168:     # enough to check the immediate dependencies, which is why we use
169:     # a tree from the reversed graph.
170:     found_failed = false
171:     relationship_graph.dependencies(resource).each do |dep|
172:       next unless failed?(dep)
173:       resource.notice "Dependency #{dep} has failures: #{resource_status(dep).failed}"
174:       found_failed = true
175:     end
176: 
177:     found_failed
178:   end