aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/keg_relocate.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 70ce8f515..8c4994938 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -153,13 +153,7 @@ class Keg
# the basename of the file itself.
basename = File.basename(file.dylib_id)
relative_dirname = file.dirname.relative_path_from(path)
- shortpath = HOMEBREW_PREFIX.join(relative_dirname, basename)
-
- if shortpath.exist? && !options[:keg_only]
- shortpath.to_s
- else
- opt_record.join(relative_dirname, basename).to_s
- end
+ opt_record.join(relative_dirname, basename).to_s
end
def find_dylib(name)