diff options
| author | Josh Hagins | 2016-11-01 12:58:38 -0400 |
|---|---|---|
| committer | Josh Hagins | 2016-11-01 12:58:38 -0400 |
| commit | e57d312ad1caa09ca0cd7cc4727dfd4b247d9971 (patch) | |
| tree | b8845ac321b26b7e86400f391829df4ab230b966 | |
| parent | d60020f1a946421cd7af91a50b274b7bce06e78a (diff) | |
| download | brew-e57d312ad1caa09ca0cd7cc4727dfd4b247d9971.tar.bz2 | |
keg_relocate: don't forget the hard links
| -rw-r--r-- | Library/Homebrew/keg_relocate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index b878781e1..0ab4b9731 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -77,7 +77,7 @@ class Keg changed = s.gsub!(regexp, replacements) next unless changed - changed_files << first.relative_path_from(path) + changed_files += [first, *rest].map { |file| file.relative_path_from(path) } begin first.atomic_write(s) |
