diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 70ce8f5153..8c49949388 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)