diff options
| author | Birger J. Nordølum | 2011-04-15 00:23:37 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-14 15:43:58 -0700 |
| commit | 5a10cc8e766e95eae8b3c3e586d825f881bfd070 (patch) | |
| tree | e7f006e59567d6d4484b32929136f4b7c2e827af /Library/Homebrew/cmd | |
| parent | d6382efdebf2a92b9e115c25f673a499eda8056d (diff) | |
| download | brew-5a10cc8e766e95eae8b3c3e586d825f881bfd070.tar.bz2 | |
Added SHA-256 to the fetch command.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/fetch.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index f8eada40a..6099ddf5c 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -29,9 +29,11 @@ module Homebrew extend self previous_md5 = f.instance_variable_get(:@md5) previous_sha1 = f.instance_variable_get(:@sha1) + previous_sha2 = f.instance_variable_get(:@sha2) puts "MD5: #{the_tarball.md5}" puts "SHA1: #{the_tarball.sha1}" + puts "SHA256: #{the_tarball.sha2}" unless previous_md5.nil? or previous_md5.empty? or the_tarball.md5 == previous_md5 opoo "Formula reports different MD5: #{previous_md5}" @@ -39,6 +41,9 @@ module Homebrew extend self unless previous_sha1.nil? or previous_sha1.empty? or the_tarball.sha1 == previous_sha1 opoo "Formula reports different SHA1: #{previous_sha1}" end + unless previous_sha2.nil? or previous_sha2.empty? or the_tarball.sha2 == previous_sha2 + opoo "Formula reports different SHA256: #{previous_sha2}" + end end end end |
