diff --git a/attributes/default.rb b/attributes/default.rb index 04456a1..14d8b30 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -1,4 +1,5 @@ default['chocolatey']['upgrade'] = true +default['chocolatey']['allow_empty_checksums'] = true # Chocolatey install.ps1 env vars. See https://chocolatey.org/install.ps1 default['chocolatey']['install_vars'].tap do |env| diff --git a/providers/default.rb b/providers/default.rb index b30b0ee..3f19f30 100644 --- a/providers/default.rb +++ b/providers/default.rb @@ -84,6 +84,7 @@ def cmd_args output = '' output += " -source #{@current_resource.source}" if @current_resource.source output += " -ia '#{@current_resource.args}'" unless @current_resource.args.to_s.empty? + output += ' --allow-empty-checksums' if node['chocolatey']['allow_empty_checksums'] @current_resource.options.each do |k, v| output += " -#{k}" output += " #{v}" if v