class Molinillo::Resolver::Resolution
def fixup_swapped_children(vertex)
-
(void)
-
Parameters:
-
vertex
(DependencyGraph::Vertex
) -- the vertex to fix up.
def fixup_swapped_children(vertex) payload = vertex.payload dep_names = dependencies_for(payload).map(&method(:name_for)) vertex.successors.each do |succ| if !dep_names.include?(succ.name) && !succ.root? && succ.predecessors.to_a == [vertex] debug(depth) { "Removing orphaned spec #{succ.name} after swapping #{name}" } activated.detach_vertex_named(succ.name) end end end