diff options
| author | Jack Nagel | 2014-02-27 14:22:42 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-02-27 14:22:42 -0600 |
| commit | acaec2a7d8efed47e2d1b05078b720d3558a8832 (patch) | |
| tree | 8b0fe41d61946036ddd85f8754ea4ea47cd03269 /Library | |
| parent | 7b1e6606366328fd744d28fbe9eab5942752ed56 (diff) | |
| download | homebrew-acaec2a7d8efed47e2d1b05078b720d3558a8832.tar.bz2 | |
Clean up FormulaInstaller#install_dependency
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index fb1713447..e7c8ff0e7 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -271,26 +271,24 @@ class FormulaInstaller end def install_dependency dep - dep_tab = Tab.for_formula(dep.to_formula) - dep_options = dep.options - dep = dep.to_formula + df = dep.to_formula - outdated_keg = Keg.new(dep.linked_keg.realpath) rescue nil + outdated_keg = Keg.new(df.linked_keg.realpath) rescue nil - fi = FormulaInstaller.new(dep) - fi.tab = dep_tab - fi.options = dep_options + fi = FormulaInstaller.new(df) + fi.tab = Tab.for_formula(dep.to_formula) + fi.options = dep.options fi.ignore_deps = true fi.only_deps = false fi.show_header = false - oh1 "Installing #{f} dependency: #{Tty.green}#{dep}#{Tty.reset}" + oh1 "Installing #{f} dependency: #{Tty.green}#{df}#{Tty.reset}" outdated_keg.unlink if outdated_keg fi.install fi.caveats fi.finish ensure # restore previous installation state if build failed - outdated_keg.link if outdated_keg and not dep.installed? rescue nil + outdated_keg.link if outdated_keg and not df.installed? rescue nil end def caveats |
