aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2012-04-03 11:43:41 -0500
committerMike McQuaid2012-04-03 11:43:41 +1000
commita947064994f020276b16007ebc9aa04af91189c3 (patch)
tree9a006ba39132966fa23f6a792c6da9fada224286 /Library/Homebrew/cmd
parentbb8fcc89014de64d5faf7e8ac9a252144addb508 (diff)
downloadbrew-a947064994f020276b16007ebc9aa04af91189c3.tar.bz2
Version bottles.
Diffstat (limited to 'Library/Homebrew/cmd')
-rwxr-xr-xLibrary/Homebrew/cmd/bottle.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 604df4503..2c4028b84 100755
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -16,7 +16,8 @@ module Homebrew extend self
end
directory = Pathname.pwd
- filename = bottle_filename f
+ bottle_version = bottle_new_version f
+ filename = bottle_filename f, bottle_version
HOMEBREW_CELLAR.cd do
ohai "Bottling #{f.name} #{f.version}..."
@@ -25,6 +26,7 @@ module Homebrew extend self
safe_system 'tar', 'czf', directory/filename, "#{f.name}/#{f.version}"
puts "./#{filename}"
puts "bottle do"
+ puts " version #{bottle_version}" if bottle_version > 0
puts " sha1 '#{(directory/filename).sha1}' => :#{MacOS.cat}"
puts "end"
end