diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 274e3ea6af03396bcdde50c8d229ad312baf8b3f..611a4b57ec7a97fd18840910ca250af6c73e9665 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -19,9 +19,12 @@ module Homebrew extend self puts "bottle do" prefix = bottle.prefix.to_s puts " prefix '#{prefix}'" if prefix != '/usr/local' - cellar = bottle.cellar.to_s - cellar = ":#{bottle.cellar}" if bottle.cellar.is_a? Symbol - puts " cellar '#{cellar}'" if bottle.cellar.to_s != '/usr/local/Cellar' + cellar = if bottle.cellar.is_a? Symbol + ":#{bottle.cellar}" + elsif bottle.cellar.to_s != '/usr/local/Cellar' + "'bottle.cellar'" + end + puts " cellar #{cellar}" if cellar puts " revision #{bottle.revision}" if bottle.revision > 0 Checksum::TYPES.each do |checksum_type| checksum_os_versions = bottle.send checksum_type