diff options
| author | Mike McQuaid | 2013-10-23 14:02:51 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-23 14:02:51 +0100 |
| commit | 27760bf53bb03844b504651469dcecf6e7a11210 (patch) | |
| tree | 49720eaadf8950e73403cbd75f7ee7213318c576 /Library | |
| parent | fb845ffa0a6ceffaf722d64d9a203ae48894a6dd (diff) | |
| download | homebrew-27760bf53bb03844b504651469dcecf6e7a11210.tar.bz2 | |
formula_installer: further fix tab file handling.
Closes #23477.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0a6277384..7e5101f86 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -203,7 +203,7 @@ class FormulaInstaller @poured_bottle = true tab = Tab.for_keg f.prefix tab.poured_from_bottle = true - tab.tabfile.delete rescue nil + tab.tabfile.delete if tab.tabfile tab.write end rescue @@ -533,8 +533,8 @@ class FormulaInstaller stdlibs = Keg.new(f.prefix).detect_cxx_stdlibs return if stdlibs.empty? - tab = Tab.for_formula(f) - tab.tabfile.unlink if tab.tabfile + tab = Tab.for_keg f.prefix + tab.tabfile.delete if tab.tabfile # It's technically possible for the same lib to link to multiple C++ stdlibs, # but very bad news. Right now we don't track this woeful scenario. tab.stdlib = stdlibs.first |
