Catch system libressl in openssl audit as well

The regex didn't match libcrypto.35.dylib, and it should have.
This commit is contained in:
Tim D. Smith 2016-09-03 22:13:04 -07:00
parent 9fd97dd3cf
commit bf18808930

View File

@ -29,7 +29,7 @@ module FormulaCellarChecks
keg = Keg.new(formula.prefix)
system_openssl = keg.mach_o_files.select do |obj|
dlls = obj.dynamically_linked_libraries
dlls.any? { |dll| %r{/usr/lib/lib(crypto|ssl)\.(\d\.)*dylib}.match dll }
dlls.any? { |dll| %r{/usr/lib/lib(crypto|ssl)\..*dylib}.match dll }
end
return if system_openssl.empty?