Use one regex for gnu.org homepage
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
parent
da3cb65857
commit
db130b65f3
@ -565,12 +565,7 @@ module Homebrew
|
|||||||
|
|
||||||
# Skip gnu.org and nongnu.org audit on GitHub runners
|
# Skip gnu.org and nongnu.org audit on GitHub runners
|
||||||
# See issue: https://github.com/Homebrew/homebrew-core/issues/206757
|
# See issue: https://github.com/Homebrew/homebrew-core/issues/206757
|
||||||
gnu_homepages = [
|
return if homepage.match?(%r{^https?://www\.(?:non)?gnu\.org/.+}) && ENV["HOMEBREW_GITHUB_HOSTED_RUNNER"]
|
||||||
%r{https://www\.gnu\.org/.+},
|
|
||||||
%r{https://www\.nongnu\.org/.+},
|
|
||||||
]
|
|
||||||
|
|
||||||
return if gnu_homepages.any?(&homepage.method(:match?)) && ENV["HOMEBREW_GITHUB_HOSTED_RUNNER"]
|
|
||||||
|
|
||||||
use_homebrew_curl = [:stable, :head].any? do |spec_name|
|
use_homebrew_curl = [:stable, :head].any? do |spec_name|
|
||||||
next false unless (spec = formula.send(spec_name))
|
next false unless (spec = formula.send(spec_name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user