aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-22 00:47:17 -0500
committerJack Nagel2014-12-22 00:52:10 -0500
commit56ee51ffaf9d119dd7f3fcda594637b2cbbce626 (patch)
tree98c9a28d988d09646d2bfd71ee476c5292bead23 /Library/Homebrew/download_strategy.rb
parente68804f87a999aef62bd5ef929a9a21db2f8e6a9 (diff)
downloadhomebrew-56ee51ffaf9d119dd7f3fcda594637b2cbbce626.tar.bz2
Mark deprecated download strategies as such
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 1e3070217..8ae9e1447 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]