mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
tap: rely on new autobump list
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
parent
6301c2d31f
commit
d0345513e2
@ -988,19 +988,20 @@ class Tap
|
|||||||
# Array with autobump names
|
# Array with autobump names
|
||||||
sig { returns(T::Array[String]) }
|
sig { returns(T::Array[String]) }
|
||||||
def autobump
|
def autobump
|
||||||
# TODO: uncomment when official taps are prepared to use new autobump system
|
autobump_packages = if core_cask_tap?
|
||||||
#
|
Homebrew::API::Cask.all_casks
|
||||||
# autobump_packages = if core_cask_tap?
|
elsif core_tap?
|
||||||
# Homebrew::API::Cask.all_casks
|
Homebrew::API::Formula.all_formulae
|
||||||
# elsif core_tap?
|
else
|
||||||
# Homebrew::API::Formula.all_formulae
|
{}
|
||||||
# else
|
end
|
||||||
# {}
|
|
||||||
# end
|
@autobump ||= autobump_packages.select do |_, p|
|
||||||
#
|
next if p["deprecated"] || p["disabled"]
|
||||||
# @autobump ||= autobump_packages.select do |_, p|
|
next if p["skip_livecheck"]
|
||||||
# p["autobump"] == true && !p["skip_livecheck"] && !(p["deprecated"] || p["disabled"])
|
|
||||||
# end.keys
|
p["autobump"] == true
|
||||||
|
end.keys
|
||||||
|
|
||||||
if @autobump.blank?
|
if @autobump.blank?
|
||||||
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?
|
@autobump = if (autobump_file = path/HOMEBREW_TAP_AUTOBUMP_FILE).file?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user