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:
parent
dae9a34a85
commit
f36bb3c6b0
@ -553,7 +553,8 @@ module Homebrew
|
|||||||
|
|
||||||
ra = ResourceAuditor.new(
|
ra = ResourceAuditor.new(
|
||||||
resource, spec_name,
|
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
|
).audit
|
||||||
ra.problems.each do |message|
|
ra.problems.each do |message|
|
||||||
problem "#{name} resource #{resource.name.inspect}: #{message}"
|
problem "#{name} resource #{resource.name.inspect}: #{message}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user