From b7fa82b28df2c076ce2d4bb4dc0384aad75cee2a Mon Sep 17 00:00:00 2001 From: Jamie Macey Date: Mon, 25 Oct 2010 21:12:31 -0700 Subject: fix warnings: ambiguous splat Signed-off-by: Adam Vandenberg --- Library/Homebrew/formula.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/formula.rb') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 3df0d29f1..f2246c7a5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -496,8 +496,9 @@ EOF 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) + # downloading all at once is much more efficient, especially for FTP + patches = patch_list.collect{|p| p[:curl_args]}.select{|p| p}.flatten + curl(*patches) ohai "Patching" patch_list.each do |p| @@ -543,7 +544,7 @@ EOF attr_rw :version, :homepage, :specs, :deps, :external_deps attr_rw :keg_only_reason, :skip_clean_all - attr_rw *CHECKSUM_TYPES + attr_rw(*CHECKSUM_TYPES) def head val=nil, specs=nil return @head if val.nil? -- cgit v1.2.3