Skip to content

Commit

Permalink
Revert "keg_relocate: Exclude hardlinks from mach_o_files."
Browse files Browse the repository at this point in the history
This reverts commit 3e5e14a.
  • Loading branch information
tdsmith committed Jun 28, 2016
1 parent 70ceb85 commit cab97cf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Library/Homebrew/keg_relocate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,8 @@ def find_dylib(bad_name)
end

def mach_o_files
hardlinks = Set.new
mach_o_files = []
path.find do |pn|
# if we've already processed a file, ignore its hardlinks (which have the same dev ID and inode)
# this prevents relocations from being performed on a binary more than once
next unless hardlinks.add? [pn.stat.dev, pn.stat.ino]
next if pn.symlink? || pn.directory?
mach_o_files << pn if pn.dylib? || pn.mach_o_bundle? || pn.mach_o_executable?
end
Expand Down

0 comments on commit cab97cf

Please sign in to comment.