installer: don't try and unlink nil tabfile.

Closes Homebrew/homebrew#23472.
This commit is contained in:
Mike McQuaid 2013-10-23 12:39:42 +01:00
parent a5e8962ae7
commit 71218a29d2

View File

@ -534,7 +534,7 @@ class FormulaInstaller
return if stdlibs.empty? return if stdlibs.empty?
tab = Tab.for_formula(f) tab = Tab.for_formula(f)
tab.tabfile.unlink tab.tabfile.unlink if tab.tabfile
# It's technically possible for the same lib to link to multiple C++ stdlibs, # 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. # but very bad news. Right now we don't track this woeful scenario.
tab.stdlib = stdlibs.first tab.stdlib = stdlibs.first