From d60a1c304a84a183891b6ed30663ee44703c34e0 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Fri, 26 Aug 2011 10:20:56 -0500 Subject: [PATCH] midnight-commander: use curl -k to download Closes Homebrew/homebrew#7229. Signed-off-by: Max Howell --- Formula/midnight-commander.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Formula/midnight-commander.rb b/Formula/midnight-commander.rb index cd12dfdace8..c2864b43363 100644 --- a/Formula/midnight-commander.rb +++ b/Formula/midnight-commander.rb @@ -1,7 +1,16 @@ require 'formula' +class MidnightCommanderDownloadStrategy < CurlDownloadStrategy + # midnight-commander.org uses a self-signed cert, which is + # silly and trips curl up + def _fetch + curl '-k', @url, '-o', @tarball_path + end +end + class MidnightCommander < Formula - url 'http://www.midnight-commander.org/downloads/mc-4.7.5.3.tar.bz2' + url 'http://www.midnight-commander.org/downloads/mc-4.7.5.3.tar.bz2', + :using => MidnightCommanderDownloadStrategy homepage 'http://www.midnight-commander.org/' sha256 '0875b4c745d771b65ab71d0a295f2e6e91297121411a82068e2879f39a7628b6'