aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index a735f0279..0d34a6711 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -143,6 +143,16 @@ class NoUnzipCurlDownloadStrategy <CurlDownloadStrategy
end
end
+# This Download 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 forulae
+# into trunk.
+class CurlUnsafeDownloadStrategy <CurlDownloadStrategy
+ def _fetch
+ curl @url, '--insecure', '-o', @tarball_path
+ end
+end
+
class SubversionDownloadStrategy <AbstractDownloadStrategy
def initialize url, name, version, specs
super