formula_installer: further fix tab file handling.
Closes Homebrew/homebrew#23477.
This commit is contained in:
parent
57e541f040
commit
3fb38ea69e
@ -203,7 +203,7 @@ class FormulaInstaller
|
|||||||
@poured_bottle = true
|
@poured_bottle = true
|
||||||
tab = Tab.for_keg f.prefix
|
tab = Tab.for_keg f.prefix
|
||||||
tab.poured_from_bottle = true
|
tab.poured_from_bottle = true
|
||||||
tab.tabfile.delete rescue nil
|
tab.tabfile.delete if tab.tabfile
|
||||||
tab.write
|
tab.write
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
@ -533,8 +533,8 @@ class FormulaInstaller
|
|||||||
stdlibs = Keg.new(f.prefix).detect_cxx_stdlibs
|
stdlibs = Keg.new(f.prefix).detect_cxx_stdlibs
|
||||||
return if stdlibs.empty?
|
return if stdlibs.empty?
|
||||||
|
|
||||||
tab = Tab.for_formula(f)
|
tab = Tab.for_keg f.prefix
|
||||||
tab.tabfile.unlink if tab.tabfile
|
tab.tabfile.delete 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user