diff options
| author | Max Howell | 2009-05-21 17:54:14 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-21 17:54:14 +0100 |
| commit | b659838993a4bb6441abfeea7023b9cc42f6129c (patch) | |
| tree | 6bd8d1393da1d520dca12aee8ec0773e062d876c | |
| parent | 9554f771cc777f6c4133fffea70463798cc890da (diff) | |
| download | brew-b659838993a4bb6441abfeea7023b9cc42f6129c.tar.bz2 | |
Display md5 mismatch if that fails
| -rw-r--r-- | Cellar/homebrew/brewkit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb index 118889205..3c1df89d8 100644 --- a/Cellar/homebrew/brewkit.rb +++ b/Cellar/homebrew/brewkit.rb @@ -59,7 +59,8 @@ class Formula FileUtils.mkpath appsupport unless File.exist? appsupport Dir.chdir appsupport do tgz=Pathname.new fetch() - raise "MD5 mismatch" unless `md5 -q "#{tgz}"`.strip == @md5.downcase + md5=`md5 -q "#{tgz}"`.strip + raise "MD5 mismatch: #{md5}" unless md5 == @md5.downcase # we make an additional subdirectory so know exactly what we are # recursively deleting later |
