mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
formula_auditor: skip archived audits if disabled
This commit is contained in:
parent
04dab8428b
commit
6de5de788b
@ -399,7 +399,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_github_repository_archived
|
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
|
user, repo = get_repo_data(%r{https?://github\.com/([^/]+)/([^/]+)/?.*}) if @online
|
||||||
return if user.blank?
|
return if user.blank?
|
||||||
@ -411,7 +411,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_gitlab_repository_archived
|
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
|
user, repo = get_repo_data(%r{https?://gitlab\.com/([^/]+)/([^/]+)/?.*}) if @online
|
||||||
return if user.blank?
|
return if user.blank?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user