diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 6db69f3e3b..32afea120d 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -183,8 +183,7 @@ end class CurlBottleDownloadStrategy e opoo "The cleaning step did not complete successfully" puts "Still, the installation was successful, so we will link it into your prefix" @@ -157,6 +157,18 @@ class FormulaInstaller @show_summary_heading = true end + def pour + HOMEBREW_CACHE.mkpath + downloader = CurlBottleDownloadStrategy.new f.bottle, f.name, f.version, nil + downloader.fetch + f.verify_download_integrity downloader.tarball_path, f.bottle_sha1, "SHA1" + HOMEBREW_CELLAR.cd do + downloader.stage + end + end + + ## checks + def paths @paths ||= ENV['PATH'].split(':').map{ |p| File.expand_path p } end