Ensure cellar path is replace correctly for relocatable bottles

This commit is contained in:
Jack Nagel 2013-11-30 19:38:49 -06:00
parent d6a94eb452
commit 4a972e5f41

View File

@ -41,8 +41,7 @@ class Keg
end end
# Search for pkgconfig .pc files and relocate references to the cellar # Search for pkgconfig .pc files and relocate references to the cellar
old_cellar = HOMEBREW_CELLAR if old_cellar == :any old_cellar = "#{old_prefix}/Cellar" if old_cellar == :any
old_prefix = HOMEBREW_PREFIX if old_prefix == :any
pkgconfig_files.each do |pcfile| pkgconfig_files.each do |pcfile|
pcfile.ensure_writable do pcfile.ensure_writable do