audit --online: check homepage reachability
Closes Homebrew/homebrew#41607. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
7d0d232fb6
commit
3ba3ecba9d
@ -428,6 +428,13 @@ class FormulaAuditor
|
|||||||
%r[^http://code\.google\.com/]
|
%r[^http://code\.google\.com/]
|
||||||
problem "Please use https:// for #{homepage}"
|
problem "Please use https:// for #{homepage}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return unless @online
|
||||||
|
begin
|
||||||
|
nostdout { curl "--connect-timeout", "15", "-IL", "-o", "/dev/null", homepage }
|
||||||
|
rescue ErrorDuringExecution
|
||||||
|
problem "The homepage is not reachable (curl exit code #{$?.exitstatus})"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def audit_github_repository
|
def audit_github_repository
|
||||||
|
Loading…
x
Reference in New Issue
Block a user