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 | 528c4d9152498d0ecc5d847a867708e7ea08adc2 (patch) | |
| tree | 50c37ea1e22f962740cb48d0eda4e2297550202b /Library | |
| parent | dda2d6988a76fed5f6f7c6749b91ce55f5af2723 (diff) | |
| download | homebrew-528c4d9152498d0ecc5d847a867708e7ea08adc2.tar.bz2 | |
Added SHA-256 to the fetch command.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -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 |
