From e9b50941db233fe081159502b91bcac1fadd7a01 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 22 Jun 2011 19:11:45 +0100 Subject: [PATCH] Print SHA1 after bottling. --- Library/Contributions/examples/brew-bottle.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb index 5e61b1495a..4d6083f277 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