renaming variable

This commit is contained in:
thibhero 2025-06-20 12:29:02 -04:00
parent 90b697995f
commit 2fb6105f26

View File

@ -130,13 +130,13 @@ module Homebrew
unless formulae.empty? unless formulae.empty?
Install.perform_preinstall_checks_once Install.perform_preinstall_checks_once
formulae_kegs = formulae.map do |formula| install_context = formulae.map do |formula|
if formula.pinned? if formula.pinned?
onoe "#{formula.full_name} is pinned. You must unpin it to reinstall." onoe "#{formula.full_name} is pinned. You must unpin it to reinstall."
next next
end end
Migrator.migrate_if_needed(formula, force: args.force?) Migrator.migrate_if_needed(formula, force: args.force?)
Homebrew::Reinstall.formula_installer( Homebrew::Reinstall.build_install_context(
formula, formula,
flags: args.flags_only, flags: args.flags_only,
force_bottle: args.force_bottle?, force_bottle: args.force_bottle?,
@ -167,12 +167,12 @@ module Homebrew
verbose: args.verbose?, verbose: args.verbose?,
) )
formulae_installer = formulae_kegs.map(&:formula_installer) formulae_installer = install_context.map(&:formula_installer)
# Main block: if asking the user is enabled, show dependency and size information. # Main block: if asking the user is enabled, show dependency and size information.
Install.ask_formulae(formulae_installer, dependants, args: args) if args.ask? Install.ask_formulae(formulae_installer, dependants, args: args) if args.ask?
formulae_kegs.each do |f| install_context.each do |f|
Homebrew::Reinstall.reinstall_formula( Homebrew::Reinstall.reinstall_formula(
f, f,
flags: args.flags_only, flags: args.flags_only,