From b4259082b56b2c3a4fcecec6d519f83f53fc4fa8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 2 Sep 2009 23:21:57 +0100 Subject: If the download fails, delete the half-file Otherwise next time it will assume the half-file is the whole file and fail the md5 check. --- Library/Homebrew/download_strategy.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 341bdb765..49b071a0a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -42,6 +42,9 @@ class HttpDownloadStrategy