diff options
| author | Max Howell | 2009-07-27 16:35:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-07-27 16:35:04 +0100 |
| commit | c0e3dbac6bca8ad20ddaca1a66b21e2bf040ddf4 (patch) | |
| tree | 07557af76a3f993a8dcf31058da0b0822d4c8e18 /Library | |
| parent | d8a944e83df880c6b217d3589f19a6daa88c5659 (diff) | |
| download | homebrew-c0e3dbac6bca8ad20ddaca1a66b21e2bf040ddf4.tar.bz2 | |
Don't allow build to be rescued if the untar fails
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 443ab1de1..c344437e1 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -127,9 +127,9 @@ public ohai "Downloading #{@url}" FileUtils.mkpath HOMEBREW_CACHE Dir.chdir HOMEBREW_CACHE do - tmp=tgz=nil + tmp=nil + tgz=Pathname.new(fetch()).realpath begin - tgz=Pathname.new(fetch()).realpath md5=`md5 -q "#{tgz}"`.strip raise "MD5 mismatch: #{md5}" unless @md5 and md5 == @md5.downcase |
