brew-fetch: Return error code on unmatched hash.

This commit is contained in:
Mike McQuaid 2012-09-02 16:26:51 -07:00
parent 50fa018057
commit a22e60ee8c

View File

@ -35,6 +35,7 @@ module Homebrew extend self
begin
f.verify_download_integrity the_tarball
rescue ChecksumMismatchError => e
Homebrew.failed = true
opoo "Formula reports different #{e.hash_type}: #{e.expected}"
end
end