def trim_solution(soln_constraints, soln, workspace)
      trimmed_soln = {}

      soln_constraints.each do |soln_constraint|
        package = workspace.package(soln_constraint.package.name)

        expand_package(trimmed_soln, package, soln)
      end

      trimmed_soln
    end
def trim_solution(soln_constraints, soln, workspace)
      trimmed_soln = {}

      soln_constraints.each do |soln_constraint|
        package = workspace.package(soln_constraint.package.name)

        expand_package(trimmed_soln, package, soln)
      end

      trimmed_soln
    end
def trim_solution ( soln_constraints , soln , workspace ) trimmed_soln = { } soln_constraints . each do | soln_constraint | package = workspace . package ( soln_constraint . package . name ) expand_package ( trimmed_soln , package , soln ) end trimmed_soln end
Given an assignment of versions to packages, filter down to only
 the required assignments
Given an assignment of versions to packages filter down to only the required assignments