From b2a0b7a8eff0922a20f97d3dd3793e893b2858ea Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 19 May 2011 07:37:24 -0700 Subject: Move gz-only strategy into core. --- Library/Homebrew/download_strategy.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index c2219216c..772a3d40c 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -143,6 +143,14 @@ class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy end end +# Normal strategy tries to untar as well +class GzipOnlyDownloadStrategy < CurlDownloadStrategy + def stage + FileUtils.mv @tarball_path, File.basename(@url) + safe_system '/usr/bin/gunzip', '-f', File.basename(@url) + 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 formula. -- cgit v1.2.3