aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-12-04 22:37:58 -0600
committerJack Nagel2013-12-04 22:37:58 -0600
commit2e89175eefe54ff9539e4af05cbce0fc9f4e305e (patch)
tree0c995fb98f36be6f053e07a7e29f4b1c46241745 /Library
parentca01b0ad97c5eccd82a249d640706eb623440837 (diff)
downloadbrew-2e89175eefe54ff9539e4af05cbce0fc9f4e305e.tar.bz2
relocate_install_names: only one substitution is needed
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index a4cf25978..4fc4a7f49 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -24,16 +24,16 @@ class Keg
file.ensure_writable do
install_names_for(file, options, relocate_reject_proc(old_cellar)) do |id, old_cellar_names|
old_cellar_names.each do |old_cellar_name|
- new_cellar_name = old_cellar_name.gsub(old_cellar, new_cellar)
+ new_cellar_name = old_cellar_name.sub(old_cellar, new_cellar)
change_install_name(old_cellar_name, new_cellar_name, file)
end
end
install_names_for(file, options, relocate_reject_proc(old_prefix)) do |id, old_prefix_names|
- change_dylib_id(id.gsub(old_prefix, new_prefix), file) if file.dylib?
+ change_dylib_id(id.sub(old_prefix, new_prefix), file) if file.dylib?
old_prefix_names.each do |old_prefix_name|
- new_prefix_name = old_prefix_name.gsub(old_prefix, new_prefix)
+ new_prefix_name = old_prefix_name.sub(old_prefix, new_prefix)
change_install_name(old_prefix_name, new_prefix_name, file)
end
end