s/Tap.select(&:installed?)/Tap.installed/
This commit is contained in:
parent
3834ef1b73
commit
fb8c0d2b30
@ -57,7 +57,7 @@ module Homebrew
|
|||||||
raise UsageError, "`brew readall` needs a tap or `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!"
|
raise UsageError, "`brew readall` needs a tap or `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!"
|
||||||
end
|
end
|
||||||
|
|
||||||
Tap.select(&:installed?)
|
Tap.installed
|
||||||
else
|
else
|
||||||
args.named.to_installed_taps
|
args.named.to_installed_taps
|
||||||
end
|
end
|
||||||
|
@ -55,12 +55,12 @@ module Homebrew
|
|||||||
args = tap_args.parse
|
args = tap_args.parse
|
||||||
|
|
||||||
if args.repair?
|
if args.repair?
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
tap.link_completions_and_manpages
|
tap.link_completions_and_manpages
|
||||||
tap.fix_remote_configuration
|
tap.fix_remote_configuration
|
||||||
end
|
end
|
||||||
elsif args.no_named?
|
elsif args.no_named?
|
||||||
puts Tap.select(&:installed?)
|
puts Tap.installed.sort_by(&:name)
|
||||||
else
|
else
|
||||||
tap = Tap.fetch(args.named.first)
|
tap = Tap.fetch(args.named.first)
|
||||||
begin
|
begin
|
||||||
|
@ -146,7 +146,7 @@ module Homebrew
|
|||||||
hub = ReporterHub.new
|
hub = ReporterHub.new
|
||||||
|
|
||||||
updated_taps = []
|
updated_taps = []
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
next if !tap.git? || tap.git_repo.origin_url.nil?
|
next if !tap.git? || tap.git_repo.origin_url.nil?
|
||||||
next if (tap.core_tap? || tap.core_cask_tap?) && !Homebrew::EnvConfig.no_install_from_api?
|
next if (tap.core_tap? || tap.core_cask_tap?) && !Homebrew::EnvConfig.no_install_from_api?
|
||||||
|
|
||||||
@ -254,7 +254,7 @@ module Homebrew
|
|||||||
|
|
||||||
Commands.rebuild_commands_completion_list
|
Commands.rebuild_commands_completion_list
|
||||||
link_completions_manpages_and_docs
|
link_completions_manpages_and_docs
|
||||||
Tap.select(&:installed?).each(&:link_completions_and_manpages)
|
Tap.installed.each(&:link_completions_and_manpages)
|
||||||
|
|
||||||
failed_fetch_dirs = ENV["HOMEBREW_MISSING_REMOTE_REF_DIRS"]&.split("\n")
|
failed_fetch_dirs = ENV["HOMEBREW_MISSING_REMOTE_REF_DIRS"]&.split("\n")
|
||||||
if failed_fetch_dirs.present?
|
if failed_fetch_dirs.present?
|
||||||
|
@ -72,7 +72,7 @@ module Homebrew
|
|||||||
sig { void }
|
sig { void }
|
||||||
def self.link!
|
def self.link!
|
||||||
Settings.write :linkcompletions, true
|
Settings.write :linkcompletions, true
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
Utils::Link.link_completions tap.path, "brew completions link"
|
Utils::Link.link_completions tap.path, "brew completions link"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -80,7 +80,7 @@ module Homebrew
|
|||||||
sig { void }
|
sig { void }
|
||||||
def self.unlink!
|
def self.unlink!
|
||||||
Settings.write :linkcompletions, false
|
Settings.write :linkcompletions, false
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
next if tap.official?
|
next if tap.official?
|
||||||
|
|
||||||
Utils::Link.unlink_completions tap.path
|
Utils::Link.unlink_completions tap.path
|
||||||
@ -94,7 +94,7 @@ module Homebrew
|
|||||||
|
|
||||||
sig { returns(T::Boolean) }
|
sig { returns(T::Boolean) }
|
||||||
def self.completions_to_link?
|
def self.completions_to_link?
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
next if tap.official?
|
next if tap.official?
|
||||||
|
|
||||||
SHELLS.each do |shell|
|
SHELLS.each do |shell|
|
||||||
|
@ -189,7 +189,7 @@ module Homebrew
|
|||||||
|
|
||||||
# Run tap audits first
|
# Run tap audits first
|
||||||
named_arg_taps = [*audit_formulae, *audit_casks].map(&:tap).uniq if !args.tap && !no_named_args
|
named_arg_taps = [*audit_formulae, *audit_casks].map(&:tap).uniq if !args.tap && !no_named_args
|
||||||
tap_problems = Tap.select(&:installed?).each_with_object({}) do |tap, problems|
|
tap_problems = Tap.installed.each_with_object({}) do |tap, problems|
|
||||||
next if args.tap && tap != args.tap
|
next if args.tap && tap != args.tap
|
||||||
next if named_arg_taps&.exclude?(tap)
|
next if named_arg_taps&.exclude?(tap)
|
||||||
|
|
||||||
|
@ -545,7 +545,7 @@ module Homebrew
|
|||||||
return if ENV["CI"]
|
return if ENV["CI"]
|
||||||
return unless Utils::Git.available?
|
return unless Utils::Git.available?
|
||||||
|
|
||||||
commands = Tap.select(&:installed?).filter_map do |tap|
|
commands = Tap.installed.filter_map do |tap|
|
||||||
next if tap.git_repo.default_origin_branch?
|
next if tap.git_repo.default_origin_branch?
|
||||||
|
|
||||||
"git -C $(brew --repo #{tap.name}) checkout #{tap.git_repo.origin_branch_name}"
|
"git -C $(brew --repo #{tap.name}) checkout #{tap.git_repo.origin_branch_name}"
|
||||||
@ -794,7 +794,7 @@ module Homebrew
|
|||||||
|
|
||||||
def check_for_tap_ruby_files_locations
|
def check_for_tap_ruby_files_locations
|
||||||
bad_tap_files = {}
|
bad_tap_files = {}
|
||||||
Tap.select(&:installed?).each do |tap|
|
Tap.installed.each do |tap|
|
||||||
unused_formula_dirs = tap.potential_formula_dirs - [tap.formula_dir]
|
unused_formula_dirs = tap.potential_formula_dirs - [tap.formula_dir]
|
||||||
unused_formula_dirs.each do |dir|
|
unused_formula_dirs.each do |dir|
|
||||||
next unless dir.exist?
|
next unless dir.exist?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user