From 11449bfd67a3c7d348d5b194c2fa0f81514c6925 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 11 May 2010 08:34:29 -0700 Subject: [PATCH] Split patching message into downloading and patching --- Library/Homebrew/formula.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1827cc263b..2841618538 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -378,7 +378,6 @@ private def patch return if patches.nil? - ohai "Patching" if not patches.kind_of? Hash # We assume -p1 patch_defns = { :p1 => patches } @@ -422,9 +421,11 @@ private return if patch_list.empty? + ohai "Downloading patches" # downloading all at once is much more efficient, espeically for FTP curl *(patch_list.collect{|p| p[:curl_args]}.select{|p| p}.flatten) + ohai "Patching" patch_list.each do |p| case p[:compression] when :gzip then safe_system "/usr/bin/gunzip", p[:filename]+'.gz'