formula_auditor: respect using: :homebrew_curl in resources too

A resource can do `using: :homebrew_curl`, but, without this change, the
audit will still use system `curl`. This fails quite predictably.

Needed for Homebrew/homebrew-core#88330.
This commit is contained in:
Carlo Cabrera 2021-10-30 20:04:13 +08:00
parent dae9a34a85
commit f36bb3c6b0
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -553,7 +553,8 @@ module Homebrew
ra = ResourceAuditor.new(
resource, spec_name,
online: @online, strict: @strict, only: @only, except: @except
online: @online, strict: @strict, only: @only, except: @except,
use_homebrew_curl: resource.using == :homebrew_curl
).audit
ra.problems.each do |message|
problem "#{name} resource #{resource.name.inspect}: #{message}"