aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 0d7a47bc0..5a269eef4 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -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