From c0e3dbac6bca8ad20ddaca1a66b21e2bf040ddf4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 27 Jul 2009 16:35:04 +0100 Subject: Don't allow build to be rescued if the untar fails --- Library/Homebrew/formula.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3