Added SHA-256 to the fetch command.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
d6382efdeb
commit
5a10cc8e76
@ -29,9 +29,11 @@ module Homebrew extend self
|
|||||||
|
|
||||||
previous_md5 = f.instance_variable_get(:@md5)
|
previous_md5 = f.instance_variable_get(:@md5)
|
||||||
previous_sha1 = f.instance_variable_get(:@sha1)
|
previous_sha1 = f.instance_variable_get(:@sha1)
|
||||||
|
previous_sha2 = f.instance_variable_get(:@sha2)
|
||||||
|
|
||||||
puts "MD5: #{the_tarball.md5}"
|
puts "MD5: #{the_tarball.md5}"
|
||||||
puts "SHA1: #{the_tarball.sha1}"
|
puts "SHA1: #{the_tarball.sha1}"
|
||||||
|
puts "SHA256: #{the_tarball.sha2}"
|
||||||
|
|
||||||
unless previous_md5.nil? or previous_md5.empty? or the_tarball.md5 == previous_md5
|
unless previous_md5.nil? or previous_md5.empty? or the_tarball.md5 == previous_md5
|
||||||
opoo "Formula reports different 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
|
unless previous_sha1.nil? or previous_sha1.empty? or the_tarball.sha1 == previous_sha1
|
||||||
opoo "Formula reports different SHA1: #{previous_sha1}"
|
opoo "Formula reports different SHA1: #{previous_sha1}"
|
||||||
end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user