update-report: use --overwrite to migrate Casks.

`--force` isn't quite what we want here as it'll just allow keg-only
linkage whereas we want to ensure we overwrite anything the Cask
installed.
This commit is contained in:
Mike McQuaid 2016-08-02 11:48:11 +01:00
parent be5484da8c
commit ebe8b8d328

View File

@ -266,7 +266,7 @@ class Reporter
system HOMEBREW_BREW_FILE, "install", new_full_name
begin
unless Formulary.factory(new_full_name).keg_only?
system HOMEBREW_BREW_FILE, "link", new_full_name, "--force"
system HOMEBREW_BREW_FILE, "link", new_full_name, "--overwrite"
end
rescue Exception => e
onoe e if ARGV.homebrew_developer?