diff options
| author | Max Howell | 2009-07-27 16:35:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-07-27 16:35:04 +0100 |
| commit | 11060f399bfeda9a63c3b90fdcaa5f82398e3db4 (patch) | |
| tree | 53d474d188661750b8cce002e290fd8268da53ad /Library/Homebrew | |
| parent | 822a30e39d99afc245c785fe3e94f36399c89c55 (diff) | |
| download | brew-11060f399bfeda9a63c3b90fdcaa5f82398e3db4.tar.bz2 | |
Don't allow build to be rescued if the untar fails
Diffstat (limited to 'Library/Homebrew')
| -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 |
