aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cellar/homebrew/brewkit.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb
index 900754125..04c9a86d6 100644
--- a/Cellar/homebrew/brewkit.rb
+++ b/Cellar/homebrew/brewkit.rb
@@ -101,7 +101,10 @@ class Formula
protected
def fetch
tgz=File.expand_path File.basename(@url)
- `curl -LOA "#{$agent}" "#{@url}"` unless File.exists? tgz
+ unless File.exists? tgz
+ `curl -LOA "#{$agent}" "#{@url}"`
+ raise "Download failed" unless $? == 0
+ end
return tgz
end