Pretty-print the "Trying a mirror" message

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-09-19 12:13:33 -05:00
parent aa6f96003b
commit 9b3c22c7bd

View File

@ -563,7 +563,8 @@ private
fetched = downloader.fetch fetched = downloader.fetch
rescue DownloadError => e rescue DownloadError => e
raise e if mirror_list.empty? raise e if mirror_list.empty?
opoo "#{e.message}\nTrying a mirror." opoo e.message
oh1 "Trying a mirror"
url, specs = mirror_list.shift.values_at :url, :specs url, specs = mirror_list.shift.values_at :url, :specs
downloader = download_strategy.new url, name, version, specs downloader = download_strategy.new url, name, version, specs
retry retry