Skip to content
Snippets Groups Projects
Commit 19920e18 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formula_installer: report --HEAD/--devel usage.

parent 18e93301
No related branches found
No related tags found
No related merge requests found
......@@ -205,8 +205,16 @@ class FormulaInstaller
oh1 "Installing #{Tty.green}#{formula.full_name}#{Tty.reset}" if show_header?
if formula.tap && !formula.tap.private?
options = effective_build_options_for(formula).used_options.to_a.join(" ")
Utils::Analytics.report_event("install", "#{formula.full_name} #{options}".strip)
options = []
if formula.head?
options << "--HEAD"
elsif formula.devel?
options << "--devel"
end
options += effective_build_options_for(formula).used_options.to_a
category = "install"
action = ([formula.full_name] + options).join(" ")
Utils::Analytics.report_event(category, action)
end
@@attempted << formula
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment