diff options
| author | ilovezfs | 2017-01-07 22:30:22 -0800 |
|---|---|---|
| committer | GitHub | 2017-01-07 22:30:22 -0800 |
| commit | f7bccee2145547d21b2629cab8b5fddff3299bda (patch) | |
| tree | c2147e764f9360109f7fbd4dd1cac034f6036cc0 /Library | |
| parent | 871213932763eac4f62ec3a9d2dcbaffdc2042fa (diff) | |
| parent | 6b63abb850a4478199e39327464dc014b632a9f1 (diff) | |
| download | brew-f7bccee2145547d21b2629cab8b5fddff3299bda.tar.bz2 | |
Merge pull request #1801 from woodruffw/check-temp-correctly
keg_relocate: Check HOMEBREW_TEMP's realpath when excluding name changes
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/keg_relocate.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 8f73daba5..f44a97b31 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -6,7 +6,9 @@ class Keg each_install_name_for(file) do |bad_name| # Don't fix absolute paths unless they are rooted in the build directory - next if bad_name.start_with?("/") && !bad_name.start_with?(HOMEBREW_TEMP.to_s) + next if bad_name.start_with?("/") && + !bad_name.start_with?(HOMEBREW_TEMP.to_s) && + !bad_name.start_with?(HOMEBREW_TEMP.realpath.to_s) new_name = fixed_name(file, bad_name) change_install_name(bad_name, new_name, file) unless new_name == bad_name |
