aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorMax Howell2011-09-19 23:29:07 +0100
committerMax Howell2011-09-19 23:30:10 +0100
commit6bd47cf0f96447e5ee0925eea34e406bdaed7ffa (patch)
tree46934d2c6eeb62ebdce6daf303b517c809c3e731 /Library/Homebrew/formula.rb
parent1dc0775a15302830725d45e9912f61e0fdfb5596 (diff)
downloadbrew-6bd47cf0f96447e5ee0925eea34e406bdaed7ffa.tar.bz2
Only try mirrors for CurlDownloadStrategies
Also adjust output text slightly for prettiness. A possibly useful side effect here is safe_system has a defined Exception (subclassing RuntimeError) now.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6ed03af14..f8d86844f 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -561,9 +561,9 @@ private
begin
fetched = downloader.fetch
- rescue DownloadError => e
+ rescue CurlDownloadStrategyError => e
raise e if mirror_list.empty?
- opoo "#{e.message}\nTrying a mirror."
+ puts "Trying a mirror..."
url, specs = mirror_list.shift.values_at :url, :specs
downloader = download_strategy.new url, name, version, specs
retry