Skip to content

Commit 6967322

Browse files
committed
resource_auditor.rb: Skip https audit for curl dependencies
The error message to be fixed: ```console % brew audit --strict --online xz xz * Stable: The source URL http://downloads.sourceforge.net/project/lzmautils/xz-5.8.1.tar.gz should use HTTPS rather than HTTP Error: 1 problem in 1 formula detected. % brew edit xz # change it to https % brew audit --strict --online xz xz * Stable: should always include at least one HTTP mirror Error: 1 problem in 1 formula detected. ``` - Fixes #15728
1 parent 46b8ef4 commit 6967322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Library/Homebrew/resource_auditor.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def audit_urls
151151
raise HomebrewCurlDownloadStrategyError, url if
152152
strategy <= HomebrewCurlDownloadStrategy && !Formula["curl"].any_version_installed?
153153

154-
if (http_content_problem = curl_check_http_content(
154+
# Skip https audit for curl dependencies
155+
if !curl_dep && (http_content_problem = curl_check_http_content(
155156
url,
156157
"source URL",
157158
specs:,

0 commit comments

Comments
 (0)