formula_auditor: skip archived audits if disabled

This commit is contained in:
Sam Ford 2021-02-03 10:12:36 -05:00
parent 04dab8428b
commit 6de5de788b
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -399,7 +399,7 @@ module Homebrew
end
def audit_github_repository_archived
return if formula.deprecated?
return if formula.deprecated? || formula.disabled?
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.blank?
@ -411,7 +411,7 @@ module Homebrew
end
def audit_gitlab_repository_archived
return if formula.deprecated?
return if formula.deprecated? || formula.disabled?
user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online
return if user.blank?