class ChefCLI::PolicyfileServices::Install
def prepare_constraints_for_update(to_update)
def prepare_constraints_for_update(to_update) ui.msg "Will relax constraints on:" to_update.each do |ck| ui.msg " - #{ck}" end policyfile_lock.cookbook_locks.each do |ck_name, location_spec| next if to_update.include?(ck_name) # we need to feed policyfile_compiler.cookbook_location_spec_for with a CookbookLocationSpecification policyfile_compiler.dsl.cookbook_location_specs[ck_name] = Policyfile::CookbookLocationSpecification.new( ck_name, Semverse::Constraint.new("=#{location_spec.version}"), location_spec.source_options, location_spec.storage_config ) end end