aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-10 11:59:43 -0700
committerAdam Vandenberg2010-07-10 12:00:11 -0700
commit984d0bd05debc4620c922352b2d6919b068be9e7 (patch)
treecef64f20381ab18ebfb31445637c1c7ade17d098 /Library/Homebrew
parentb5ba49b90ed944a98cc2622aa2e4976bfe47c0cb (diff)
downloadbrew-984d0bd05debc4620c922352b2d6919b068be9e7.tar.bz2
CurlUnsafeDownloadStrategy
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.
Diffstat (limited to 'Library/Homebrew')
-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