Note how to redownload tarballs on failed checksum.
Fixes Homebrew/homebrew#659
This commit is contained in:
parent
7850789457
commit
43d1f6790b
@ -371,7 +371,14 @@ private
|
||||
hash = fn.incremental_hash(hasher)
|
||||
|
||||
if supplied and not supplied.empty?
|
||||
raise "#{type} mismatch\nExpected: #{supplied}\nGot: #{hash}\nArchive: #{fn}" unless supplied.upcase == hash.upcase
|
||||
message = <<-EOF
|
||||
#{type} mismatch
|
||||
Expected: #{supplied}
|
||||
Got: #{hash}
|
||||
Archive: #{fn}
|
||||
(To retry an incomplete download, remove the file above.)
|
||||
EOF
|
||||
raise message unless supplied.upcase == hash.upcase
|
||||
else
|
||||
opoo "Cannot verify package integrity"
|
||||
puts "The formula did not provide a download checksum"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user