diff options
| author | Jack Nagel | 2014-07-24 19:39:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-24 19:39:09 -0500 |
| commit | 0297a6d768903206f65c80a49a642a4ea69aef29 (patch) | |
| tree | b90bafc0db974887f0fea701263fac5ee5fd411a /Library/Homebrew/formula_installer.rb | |
| parent | 34ca4ea39948758efc57c1c6ef30e37259806cf6 (diff) | |
| download | homebrew-0297a6d768903206f65c80a49a642a4ea69aef29.tar.bz2 | |
Pass the keg object into link and fix_install_names
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index d1d991795..641ce9a29 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -408,18 +408,20 @@ class FormulaInstaller install_plist + keg = Keg.new(f.prefix) + if f.keg_only? begin - Keg.new(f.prefix).optlink + keg.optlink rescue Exception onoe "Failed to create: #{f.opt_prefix}" puts "Things that depend on #{f} will probably not build." end else - link + link(keg) end - fix_install_names if OS.mac? + fix_install_names(keg) if OS.mac? post_install @@ -544,9 +546,7 @@ class FormulaInstaller raise end - def link - keg = Keg.new(f.prefix) - + def link(keg) if keg.linked? opoo "This keg was marked linked already, continuing anyway" keg.remove_linked_keg_record @@ -591,8 +591,7 @@ class FormulaInstaller ohai e, e.backtrace if debug? end - def fix_install_names - keg = Keg.new(f.prefix) + def fix_install_names(keg) keg.fix_install_names(:keg_only => f.keg_only?) if @poured_bottle |
