Only look for libraries in lib if it exists

Fixes Homebrew/homebrew#40630.
This commit is contained in:
Jack Nagel 2015-06-14 22:07:38 -04:00
parent a047fc08d6
commit 357648a8c4

View File

@ -148,7 +148,7 @@ class Keg
end
def find_dylib name
lib.find { |pn| break pn if pn.basename == name }
lib.find { |pn| break pn if pn.basename == name } if lib.directory?
end
def mach_o_files