linkage_checker: fix generic pathname calls.
This commit is contained in:
parent
3454d6a961
commit
8035afcc36
@ -472,9 +472,17 @@ class Pathname
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def binary_executable?
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
def mach_o_bundle?
|
def mach_o_bundle?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def dylib?
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
require "extend/os/pathname"
|
require "extend/os/pathname"
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class LinkageChecker
|
|||||||
checked_dylibs = Set.new
|
checked_dylibs = Set.new
|
||||||
@keg.find do |file|
|
@keg.find do |file|
|
||||||
next if file.symlink? || file.directory?
|
next if file.symlink? || file.directory?
|
||||||
next unless file.dylib? || file.binary_executable? || file.mach_o_bundle?
|
next if !file.dylib? && !file.binary_executable? && !file.mach_o_bundle?
|
||||||
|
|
||||||
# weakly loaded dylibs may not actually exist on disk, so skip them
|
# weakly loaded dylibs may not actually exist on disk, so skip them
|
||||||
# when checking for broken linkage
|
# when checking for broken linkage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user