diff options
| author | Yarrow | 2010-05-02 15:21:56 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-02 15:49:50 -0700 |
| commit | 305fca250edb75d31f38a920e331eb4db9b2aaa3 (patch) | |
| tree | 33fbc137d5aa1413488451603fa1321cb2eb9aa0 /Library | |
| parent | 5fe0b108ad795f1877a843c08c72ba07002d31b1 (diff) | |
| download | brew-305fca250edb75d31f38a920e331eb4db9b2aaa3.tar.bz2 | |
Show digest mismatch in verify_download_integrity
Report "Expected <supplied digest>, got <file's digest>"
when verify_download_integrity sees a mismatch. (It had
been, confusingly, reporting "Expected <file's digest>".)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 10e345e70..c102af3fe 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -353,7 +353,7 @@ private hash = fn.incremental_hash(hasher) if supplied and not supplied.empty? - raise "#{type} mismatch\nExpected: #{hash}\nArchive: #{fn}" unless supplied.upcase == hash.upcase + raise "#{type} mismatch\nExpected #{supplied}, got #{hash}\nArchive: #{fn}" unless supplied.upcase == hash.upcase else opoo "Cannot verify package integrity" puts "The formula did not provide a download checksum" |
