diff options
| author | Adam Vandenberg | 2011-03-09 21:01:23 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:08 -0800 | 
| commit | f2fff3c510640bdda35dbfadc4f841ef1c85250a (patch) | |
| tree | 56858e707e3c635ea931a135973325b9f41d5581 /Library/Homebrew/formula_installer.rb | |
| parent | 2f5742dbe8a1d951e1418909de54da5c03773ba2 (diff) | |
| download | homebrew-f2fff3c510640bdda35dbfadc4f841ef1c85250a.tar.bz2 | |
Fix 'brew install f' for already-installed brews.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 06847dfbc..497f2a2ef 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -13,15 +13,15 @@ class FormulaInstaller    def go      if @f.installed? and not ARGV.force?        raise FormulaAlreadyInstalledError, @f -    else -      unless ignore_deps -        @f.recursive_deps.each do |dep| -          FormulaInstaller.install_formula dep unless dep.installed? -        end -        FormulaInstaller.check_external_deps @f +    end + +    unless ignore_deps +      @f.recursive_deps.each do |dep| +        FormulaInstaller.install_formula dep unless dep.installed?        end -      FormulaInstaller.install_formula @f +      FormulaInstaller.check_external_deps @f      end +    FormulaInstaller.install_formula @f    end    def self.check_external_deps f  | 
