diff options
| author | Markus Reiter | 2017-05-18 09:39:07 +0200 |
|---|---|---|
| committer | GitHub | 2017-05-18 09:39:07 +0200 |
| commit | f0dc1d96c50551be69ea418148a9bc2d72cfaf16 (patch) | |
| tree | c94a8385e4832016644205b2f92d4bc1621931b4 /Library/Homebrew/extend | |
| parent | 2b726383f1712e5a34627b4db9bed8b7b81973b2 (diff) | |
| parent | 5828eefd01cd61d2a7fbf439620b21f6f5b3d1b1 (diff) | |
| download | brew-f0dc1d96c50551be69ea418148a9bc2d72cfaf16.tar.bz2 | |
Merge pull request #2537 from reitermarkus/pathname-to_str
Remove `to_s` from some `Pathname`s.
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/os/mac/keg_relocate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/os/mac/keg_relocate.rb b/Library/Homebrew/extend/os/mac/keg_relocate.rb index 0b2ecd1c9..e541df839 100644 --- a/Library/Homebrew/extend/os/mac/keg_relocate.rb +++ b/Library/Homebrew/extend/os/mac/keg_relocate.rb @@ -63,9 +63,9 @@ class Keg # expensive recursive search if possible. def fixed_name(file, bad_name) if bad_name.start_with? PREFIX_PLACEHOLDER - bad_name.sub(PREFIX_PLACEHOLDER, HOMEBREW_PREFIX.to_s) + bad_name.sub(PREFIX_PLACEHOLDER, HOMEBREW_PREFIX) elsif bad_name.start_with? CELLAR_PLACEHOLDER - bad_name.sub(CELLAR_PLACEHOLDER, HOMEBREW_CELLAR.to_s) + bad_name.sub(CELLAR_PLACEHOLDER, HOMEBREW_CELLAR) elsif (file.dylib? || file.mach_o_bundle?) && (file.parent + bad_name).exist? "@loader_path/#{bad_name}" elsif file.mach_o_executable? && (lib + bad_name).exist? |
