in lib/puppet/provider/package/brew.rb [115:129]
def do_install
begin
output = execute([command(:brew), :install, install_name, *install_options], :failonfail => true)
if output =~ /sha256 checksum/
Puppet.debug "Fixing checksum error..."
mismatched = output.match(/Already downloaded: (.*)/).captures
fix_checksum(mismatched)
end
rescue Puppet::ExecutionFailure => detail
raise Puppet::Error, "Could not install package: #{detail}"
end
end