diff options
| author | Mike McQuaid | 2016-08-08 09:56:12 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-09 19:41:30 +0100 |
| commit | 19920e18a129a21890d9d8bd6443cd1afd32208b (patch) | |
| tree | e7d81166f1010e49858d9d55d2b3c3141ce8d0b7 /Library | |
| parent | 18e933016cf5dabee34502d23c8dfa911a99b4e7 (diff) | |
| download | brew-19920e18a129a21890d9d8bd6443cd1afd32208b.tar.bz2 | |
formula_installer: report --HEAD/--devel usage.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 12 |
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 |
