Skip to content
Snippets Groups Projects
Commit 4eb7116c authored by Mike McQuaid's avatar Mike McQuaid
Browse files

bottle: fix cellar output.

parent 528e750f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment