aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-30 19:38:49 -0600
committerJack Nagel2013-12-01 17:05:02 -0600
commit71d8ae8c3fcc868ff11b6ba3f938fe1ed6562904 (patch)
treecf531dab1f67776ce2d12bc6aabd28fe77e973fa /Library
parent2b12d806ebaad325fa87b74e938f2dbc9d908f77 (diff)
downloadhomebrew-71d8ae8c3fcc868ff11b6ba3f938fe1ed6562904.tar.bz2
Ensure cellar path is replace correctly for relocatable bottles
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_fix_install_names.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb
index 2d79e9180..3900e774b 100644
--- a/Library/Homebrew/keg_fix_install_names.rb
+++ b/Library/Homebrew/keg_fix_install_names.rb
@@ -41,8 +41,7 @@ class Keg
end
# Search for pkgconfig .pc files and relocate references to the cellar
- old_cellar = HOMEBREW_CELLAR if old_cellar == :any
- old_prefix = HOMEBREW_PREFIX if old_prefix == :any
+ old_cellar = "#{old_prefix}/Cellar" if old_cellar == :any
pkgconfig_files.each do |pcfile|
pcfile.ensure_writable do