brew-fetch: Return error code on unmatched hash.
This commit is contained in:
parent
50fa018057
commit
a22e60ee8c
@ -35,6 +35,7 @@ module Homebrew extend self
|
|||||||
begin
|
begin
|
||||||
f.verify_download_integrity the_tarball
|
f.verify_download_integrity the_tarball
|
||||||
rescue ChecksumMismatchError => e
|
rescue ChecksumMismatchError => e
|
||||||
|
Homebrew.failed = true
|
||||||
opoo "Formula reports different #{e.hash_type}: #{e.expected}"
|
opoo "Formula reports different #{e.hash_type}: #{e.expected}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user