diff options
| author | Jack Nagel | 2014-03-15 10:40:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-15 10:53:03 -0500 |
| commit | eab90dcb567c552dbd1965383b2cd10035f7debd (patch) | |
| tree | 80f42e220c8c2c7dfeaf19f014573025358fc150 /Library/Homebrew/cmd/install.rb | |
| parent | d441d7b97fdb9c085f44989ea406ace486133490 (diff) | |
| download | brew-eab90dcb567c552dbd1965383b2cd10035f7debd.tar.bz2 | |
Rewrite `brew reinstall`
Fixes Homebrew/homebrew#23928.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index a3d7b6452..d1a50e887 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -36,14 +36,9 @@ module Homebrew extend self end unless ARGV.force? perform_preinstall_checks + begin - ARGV.formulae.each do |f| - begin - install_formula(f) - rescue CannotInstallFormulaError => e - ofail e.message - end - end + ARGV.formulae.each { |f| install_formula(f) } rescue FormulaUnavailableError => e ofail e.message require 'cmd/search' @@ -124,6 +119,7 @@ module Homebrew extend self # another formula. In that case, don't generate an error, just move on. rescue FormulaAlreadyInstalledError => e opoo e.message - # Ignore CannotInstallFormulaError and let caller handle it. + rescue CannotInstallFormulaError => e + ofail e.message end end |
