Fixed broken test due to changing usage of DatabaseCache to block usage.
This commit is contained in:
parent
d5795d816a
commit
e5eaf57856
@ -66,22 +66,25 @@ module FormulaCellarChecks
|
|||||||
return unless formula.prefix.directory?
|
return unless formula.prefix.directory?
|
||||||
keg = Keg.new(formula.prefix)
|
keg = Keg.new(formula.prefix)
|
||||||
|
|
||||||
DatabaseCache.new(:linkage) { |database_cache| LinkageChecker.new(keg, database_cache, false, formula) }
|
DatabaseCache.new(:linkage) do |database_cache|
|
||||||
|
checker = LinkageChecker.new(keg, database_cache, false, formula)
|
||||||
|
|
||||||
return unless checker.broken_dylibs?
|
return unless checker.broken_dylibs?
|
||||||
output = <<~EOS
|
output = <<~EOS
|
||||||
#{formula} has broken dynamic library links:
|
#{formula} has broken dynamic library links:
|
||||||
#{checker.broken_dylibs.to_a * "\n "}
|
#{checker.broken_dylibs.to_a * "\n "}
|
||||||
EOS
|
|
||||||
tab = Tab.for_keg(keg)
|
|
||||||
if tab.poured_from_bottle
|
|
||||||
output += <<~EOS
|
|
||||||
Rebuild this from source with:
|
|
||||||
brew reinstall --build-from-source #{formula}
|
|
||||||
If that's successful, file an issue#{formula.tap ? " here:\n #{formula.tap.issues_url}" : "."}
|
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
tab = Tab.for_keg(keg)
|
||||||
|
if tab.poured_from_bottle
|
||||||
|
output += <<~EOS
|
||||||
|
Rebuild this from source with:
|
||||||
|
brew reinstall --build-from-source #{formula}
|
||||||
|
If that's successful, file an issue#{formula.tap ? " here:\n #{formula.tap.issues_url}" : "."}
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
problem_if_output output
|
||||||
end
|
end
|
||||||
problem_if_output output
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def audit_installed
|
def audit_installed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user