Merge pull request #1801 from woodruffw/check-temp-correctly
keg_relocate: Check HOMEBREW_TEMP's realpath when excluding name changes
This commit is contained in:
commit
f7bccee214
@ -6,7 +6,9 @@ class Keg
|
|||||||
|
|
||||||
each_install_name_for(file) do |bad_name|
|
each_install_name_for(file) do |bad_name|
|
||||||
# Don't fix absolute paths unless they are rooted in the build directory
|
# 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)
|
new_name = fixed_name(file, bad_name)
|
||||||
change_install_name(bad_name, new_name, file) unless new_name == bad_name
|
change_install_name(bad_name, new_name, file) unless new_name == bad_name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user