formula_installer: output fetching headers.

This outputs headers for fetching to be consistent with those for
installation.
This commit is contained in:
Mike McQuaid 2022-12-06 14:09:49 +00:00
parent 001bacee18
commit 5e7c19c8cb
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -1161,6 +1161,10 @@ class FormulaInstaller
deps = compute_dependencies
return if deps.empty?
oh1 "Fetching dependencies for #{formula.full_name}: " \
"#{deps.map(&:first).map(&Formatter.method(:identifier)).to_sentence}",
truncate: false
deps.each { |dep, _options| fetch_dependency(dep) }
end
@ -1172,6 +1176,8 @@ class FormulaInstaller
return if only_deps?
oh1 "Fetching #{Formatter.identifier(formula.full_name)}".strip
if pour_bottle?(output_warning: true)
formula.fetch_bottle_tab
elsif formula.core_formula? && Homebrew::EnvConfig.install_from_api?