Merge pull request #19854 from botantony/autobump-fix
tap: fix autobump logic for unofficial taps
This commit is contained in:
commit
f3a418a917
@ -987,8 +987,10 @@ class Tap
|
||||
def autobump
|
||||
autobump_packages = if core_cask_tap?
|
||||
Homebrew::API::Cask.all_casks
|
||||
else
|
||||
elsif core_tap?
|
||||
Homebrew::API::Formula.all_formulae
|
||||
else
|
||||
{}
|
||||
end
|
||||
|
||||
@autobump ||= autobump_packages.select do |_, p|
|
||||
|
||||
@ -17,6 +17,7 @@ module Homebrew
|
||||
@tap_style_exceptions = tap.style_exceptions
|
||||
@tap_pypi_formula_mappings = tap.pypi_formula_mappings
|
||||
@tap_autobump = tap.autobump
|
||||
@tap_official = tap.official?
|
||||
@problems = []
|
||||
|
||||
@cask_tokens = tap.cask_tokens.map do |cask_token|
|
||||
@ -54,8 +55,8 @@ module Homebrew
|
||||
check_formula_list_directory "audit_exceptions", @tap_audit_exceptions
|
||||
check_formula_list_directory "style_exceptions", @tap_style_exceptions
|
||||
check_formula_list "pypi_formula_mappings", @tap_pypi_formula_mappings
|
||||
check_formula_list ".github/autobump.txt", @tap_autobump
|
||||
check_formula_list "formula_renames", @formula_renames.values
|
||||
check_formula_list ".github/autobump.txt", @tap_autobump unless @tap_official
|
||||
end
|
||||
|
||||
sig { void }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user