diff options
Diffstat (limited to 'Library/Homebrew/keg_relocate.rb')
| -rw-r--r-- | Library/Homebrew/keg_relocate.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 053c8b9de..04f589984 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -1,6 +1,7 @@ class Keg PREFIX_PLACEHOLDER = "@@HOMEBREW_PREFIX@@".freeze CELLAR_PLACEHOLDER = "@@HOMEBREW_CELLAR@@".freeze + REPOSITORY_PLACEHOLDER = "@@HOMEBREW_REPOSITORY@@".freeze def fix_dynamic_linkage symlink_files.each do |file| @@ -18,13 +19,15 @@ class Keg [] end - def relocate_text_files(old_prefix, new_prefix, old_cellar, new_cellar) + def relocate_text_files(old_prefix, new_prefix, old_cellar, new_cellar, + old_repository, new_repository) files = text_files | libtool_files files.group_by { |f| f.stat.ino }.each_value do |first, *rest| s = first.open("rb", &:read) changed = s.gsub!(old_cellar, new_cellar) changed = s.gsub!(old_prefix, new_prefix) || changed + changed = s.gsub!(old_repository, new_repository) || changed next unless changed |
