From 1dfc565550cbb77a2f5f2a8ad6d75e1b3aa87ad9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 15 Jun 2019 17:26:33 +0100 Subject: [PATCH] brew-aspell-dictionaries: use new Resource#fetch API. Also improve the code and output so we output everything in a copy-pasteable format at the end. --- cmd/brew-aspell-dictionaries.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/brew-aspell-dictionaries.rb b/cmd/brew-aspell-dictionaries.rb index eec7375af5e..4de399bf794 100755 --- a/cmd/brew-aspell-dictionaries.rb +++ b/cmd/brew-aspell-dictionaries.rb @@ -23,12 +23,17 @@ URI.parse("#{dict_url}/0index.html").open do |content| end end -languages.each do |lang, path| +resources = languages.map do |lang, path| r = Resource.new(lang) r.owner = Formulary.factory("aspell") r.url "#{dict_url}/#{path}" r.mirror "#{dict_mirror}/#{path}" - r.fetch + r +end + +resources.each {|r| r.fetch(verify_download_integrity: false)} + +resources.each do |r| puts <<-EOS resource "#{r.name}" do url "#{r.url}"