diff options
| author | Jamie Macey | 2010-10-25 21:12:31 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-30 14:50:54 -0700 |
| commit | b7fa82b28df2c076ce2d4bb4dc0384aad75cee2a (patch) | |
| tree | 14b273416ad2abdbe0cd9b0f4cc87484b1dc5d29 /Library/Homebrew/formula.rb | |
| parent | 6ff5e194c74cbfc53c53b867159faed5a5afc086 (diff) | |
| download | brew-b7fa82b28df2c076ce2d4bb4dc0384aad75cee2a.tar.bz2 | |
fix warnings: ambiguous splat
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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? |
