From d3daa8a25b9c4863ce1ee05268013bb3eb104b28 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 22 Dec 2014 00:47:17 -0500 Subject: [PATCH] Mark deprecated download strategies as such --- Library/Homebrew/download_strategy.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 1e3070217d..8ae9e14479 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -345,9 +345,7 @@ class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy end end -# This strategy is provided for use with sites that only provide HTTPS and -# also have a broken cert. Try not to need this, as we probably won't accept -# the formula. +# @deprecated class CurlUnsafeDownloadStrategy < CurlDownloadStrategy def _fetch curl @url, '--insecure', '-C', downloaded_size, '-o', temporary_path @@ -492,9 +490,10 @@ class SubversionDownloadStrategy < VCSDownloadStrategy alias_method :update, :clone_repo end +# @deprecated StrictSubversionDownloadStrategy = SubversionDownloadStrategy -# Download from SVN servers with invalid or self-signed certs +# @deprecated class UnsafeSubversionDownloadStrategy < SubversionDownloadStrategy def fetch_args %w[--non-interactive --trust-server-cert]