Skip to content

Commit

Permalink
Update formula_auditor.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Mar 13, 2024
1 parent 9ce14a0 commit f069cea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/Homebrew/formula_auditor.rb
Expand Up @@ -627,12 +627,13 @@ def audit_wayback_url
return if formula.deprecated? || formula.disabled?

regex = %r{^https?://web\.archive\.org}
problem_prefix = "Formula with a Internet Archive Wayback Machine"
if regex.match?(formula.stable.url)
problem "Formula with a Internet Archive Wayback Machine `url` should be deprecated with `:repo_removed`"
problem "#{problem_prefix} `url` should be deprecated with `:repo_removed`"
end

if regex.match?(formula.homepage)
problem "Formula with a Internet Archive Wayback Machine `homepage` should find an alternative `homepage` or be deprecated."
problem "#{problem_prefix} `homepage` should find an alternative `homepage` or be deprecated."
end

return unless formula.head
Expand Down

0 comments on commit f069cea

Please sign in to comment.