aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2011-06-22 19:11:45 +0100
committerMike McQuaid2011-06-22 19:11:45 +0100
commitc5d2105f5f9de0bec5a617663e133dc35d613aec (patch)
treec10cbb79d2774a25befba94cdde30a621a0cf274 /Library
parentec041b1e0dc2292c528867cf32494bc4f9240eb4 (diff)
downloadhomebrew-c5d2105f5f9de0bec5a617663e133dc35d613aec.tar.bz2
Print SHA1 after bottling.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-bottle.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb
index 5e61b1495..4d6083f27 100755
--- a/Library/Contributions/examples/brew-bottle.rb
+++ b/Library/Contributions/examples/brew-bottle.rb
@@ -18,6 +18,8 @@ ARGV.each do|formula|
# Use gzip, faster to compress than bzip2, faster to uncompress than bzip2
# or an uncompressed tarball (and more bandwidth friendly).
safe_system 'tar', 'czf', "#{destination}/#{filename}", "#{formula}/#{version}"
+ sha1 = Pathname.new("#{destination}/#{filename}").sha1
+ ohai "Bottled #{filename}"
+ ohai "SHA1 #{sha1}"
end
- ohai "Bottled #{filename}"
end