Merge pull request #7996 from rmNULL/gemfile-patchelf-version-update

Replace instance variable access with call to .elf.
This commit is contained in:
Jonathan Chang 2020-07-15 17:58:37 +10:00 committed by GitHub
commit 20e3d74e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ module ELFShim
return @dynamic_elf if defined? @dynamic_elf return @dynamic_elf if defined? @dynamic_elf
@dynamic_elf = if HOMEBREW_PATCHELF_RB @dynamic_elf = if HOMEBREW_PATCHELF_RB
patchelf_patcher.instance_variable_get(:@elf).segment_by_type(:DYNAMIC).present? patchelf_patcher.elf.segment_by_type(:DYNAMIC).present?
elsif which "readelf" elsif which "readelf"
Utils.popen_read("readelf", "-l", to_path).include?(" DYNAMIC ") Utils.popen_read("readelf", "-l", to_path).include?(" DYNAMIC ")
elsif which "file" elsif which "file"