Restore --force behaviour in brew-install

Fixes Homebrew/homebrew#8933.
Closes Homebrew/homebrew#8936.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
Misty De Meo 2011-12-02 09:50:16 -06:00 committed by Charlie Sharpsteen
parent 6c86d358a3
commit ea4d1f6b7b

View File

@ -86,7 +86,7 @@ module Homebrew extend self
formulae.each do |f|
# Check formula status and skip if necessary---a formula passed on the
# command line may have been installed to satisfy a dependency.
next if f.installed?
next if f.installed? unless ARGV.flag? '--force'
begin
fi = FormulaInstaller.new(f)