Skip to content

Commit

Permalink
bottle: fix cellar output.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Jul 14, 2013
1 parent 4b6799a commit 689f7bb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Library/Homebrew/cmd/bottle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ def bottle_output bottle
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
Expand Down

0 comments on commit 689f7bb

Please sign in to comment.