aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 16:31:58 +0100
committerMike McQuaid2016-09-18 16:31:58 +0100
commit997ccb044d21fccb1a95ef4eefad0fa892289e02 (patch)
tree2948ea9c1d2bd6a0fce9cb7b6a4a874d45c7417b /Library/Homebrew/formula_installer.rb
parentf4a8d28819f1fee73fcc63d08e70cb36eecdfb20 (diff)
downloadbrew-997ccb044d21fccb1a95ef4eefad0fa892289e02.tar.bz2
Relocate HOMEBREW_REPOSITORY when necessary.
Now that the default from the installer, our CI and soon all users is `/usr/local/Homebrew` it's a lot easier to check if there's references to it (as we cannot look for `/usr/local` as it's a too commonly hardcoded path).
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 18267ee78..f64b77026 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -779,7 +779,8 @@ class FormulaInstaller
Keg::CELLAR_PLACEHOLDER, HOMEBREW_CELLAR.to_s
end
keg.relocate_text_files Keg::PREFIX_PLACEHOLDER, HOMEBREW_PREFIX.to_s,
- Keg::CELLAR_PLACEHOLDER, HOMEBREW_CELLAR.to_s
+ Keg::CELLAR_PLACEHOLDER, HOMEBREW_CELLAR.to_s,
+ Keg::REPOSITORY_PLACEHOLDER, HOMEBREW_REPOSITORY.to_s
Pathname.glob("#{formula.bottle_prefix}/{etc,var}/**/*") do |path|
path.extend(InstallRenamed)