rubocop
This commit is contained in:
parent
2f4eaf26a0
commit
3b75075727
@ -16,11 +16,10 @@ class Keg
|
|||||||
link = file.readlink
|
link = file.readlink
|
||||||
# Don't fix relative symlinks
|
# Don't fix relative symlinks
|
||||||
next unless link.absolute?
|
next unless link.absolute?
|
||||||
if link.to_s.start_with?(HOMEBREW_CELLAR.to_s) || link.to_s.start_with?(HOMEBREW_PREFIX.to_s)
|
next unless link.to_s.start_with?(HOMEBREW_CELLAR.to_s) || link.to_s.start_with?(HOMEBREW_PREFIX.to_s)
|
||||||
new_src = link.relative_path_from(file.parent)
|
new_src = link.relative_path_from(file.parent)
|
||||||
file.unlink
|
file.unlink
|
||||||
FileUtils.ln_s(new_src, file)
|
FileUtils.ln_s(new_src, file)
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
alias generic_fix_dynamic_linkage fix_dynamic_linkage
|
alias generic_fix_dynamic_linkage fix_dynamic_linkage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user