From de620e439691b540822b76c361cea0c96362606b Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 5 Sep 2009 20:47:15 +0100 Subject: [PATCH] No spurious error due to Interrupt during curl Only delete the file that is downloaded if an error occurs while downloading it. --- Library/Contributions/brew_bash_completion.sh | 4 +--- Library/Homebrew/download_strategy.rb | 10 ++++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index f33204d369..4711c93bb5 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -1,9 +1,7 @@ # This script contains bash completions for brew. +# # To use, edit your .bashrc and add the line: # source `brew --prefix`/Library/Contributions/brew_bash_completion.sh -# -# Assuming you have brew installed in /usr/local, then you'll want: -# source /usr/local/Library/Contributions/brew_bash_completion.sh _brew_to_completion() { diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 49b071a0a3..2cd85f3bba 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -37,14 +37,16 @@ class HttpDownloadStrategy