diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 101cfb62f145a5..6329ab301c0f16 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -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