formula_installer: report --HEAD/--devel usage.
This commit is contained in:
parent
18e933016c
commit
19920e18a1
@ -205,8 +205,16 @@ class FormulaInstaller
|
|||||||
oh1 "Installing #{Tty.green}#{formula.full_name}#{Tty.reset}" if show_header?
|
oh1 "Installing #{Tty.green}#{formula.full_name}#{Tty.reset}" if show_header?
|
||||||
|
|
||||||
if formula.tap && !formula.tap.private?
|
if formula.tap && !formula.tap.private?
|
||||||
options = effective_build_options_for(formula).used_options.to_a.join(" ")
|
options = []
|
||||||
Utils::Analytics.report_event("install", "#{formula.full_name} #{options}".strip)
|
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
|
end
|
||||||
|
|
||||||
@@attempted << formula
|
@@attempted << formula
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user