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

This commit is contained in:
Mike McQuaid 2016-08-08 09:56:12 +01:00
parent 18e933016c
commit 19920e18a1

View File

@ -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