bottle: fix cellar output.
This commit is contained in:
parent
528e750f7b
commit
4eb7116c9c
@ -19,9 +19,12 @@ module Homebrew extend self
|
|||||||
puts "bottle do"
|
puts "bottle do"
|
||||||
prefix = bottle.prefix.to_s
|
prefix = bottle.prefix.to_s
|
||||||
puts " prefix '#{prefix}'" if prefix != '/usr/local'
|
puts " prefix '#{prefix}'" if prefix != '/usr/local'
|
||||||
cellar = bottle.cellar.to_s
|
cellar = if bottle.cellar.is_a? Symbol
|
||||||
cellar = ":#{bottle.cellar}" if bottle.cellar.is_a? Symbol
|
":#{bottle.cellar}"
|
||||||
puts " cellar '#{cellar}'" if bottle.cellar.to_s != '/usr/local/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
|
puts " revision #{bottle.revision}" if bottle.revision > 0
|
||||||
Checksum::TYPES.each do |checksum_type|
|
Checksum::TYPES.each do |checksum_type|
|
||||||
checksum_os_versions = bottle.send checksum_type
|
checksum_os_versions = bottle.send checksum_type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user