diff options
| author | Mike McQuaid | 2013-07-14 12:11:41 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-07-14 12:11:57 -0700 |
| commit | 4eb7116c9cc0175a37e5c2fd2c1bc2b85bd799b0 (patch) | |
| tree | bc564f6e7422b210aac83353acf91d0c089e363f /Library | |
| parent | 528e750f7be39e0f747fcfd0398763346d09097a (diff) | |
| download | brew-4eb7116c9cc0175a37e5c2fd2c1bc2b85bd799b0.tar.bz2 | |
bottle: fix cellar output.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/bottle.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 274e3ea6a..611a4b57e 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 |
