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
commit4a972e5f416c4aaf40a82725b588fe91ed55edd3 (patch)
tree7f34024a1a387fbfea5fa949d7e0740141283e0d /Library
parentd6a94eb4528e900fa0dd7a2c4309eb5cbeeb3ef6 (diff)
downloadbrew-4a972e5f416c4aaf40a82725b588fe91ed55edd3.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