aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/analytics.rb
diff options
context:
space:
mode:
authorAndrew Janke2016-04-26 04:28:38 -0400
committerAndrew Janke2016-04-26 04:28:38 -0400
commit05efd70dc350bf60c47d25d1d48da188ffb504df (patch)
tree7360f602e8bc7258f7845d9423156f7e19dafa67 /Library/Homebrew/utils/analytics.rb
parent7aaaf9d8dbfd3c8dc7045de434f8f79206922164 (diff)
downloadbrew-05efd70dc350bf60c47d25d1d48da188ffb504df.tar.bz2
Analytics: Separate user-supplied and internal-use DISABLE_ANALYTICS (#155)
This prevents `brew` self-calls from interacting with the stickiness of HOMEBREW_NO_ANALYTICS being persisted to the brew repo and accidentally disabling analytics permanently when it should have been for just one run, while restoring the stickiness of an explicit user-supplied HOMEBREW_NO_ANALYTICS.
Diffstat (limited to 'Library/Homebrew/utils/analytics.rb')
-rw-r--r--Library/Homebrew/utils/analytics.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb
index caf2a15c1..32ea22f89 100644
--- a/Library/Homebrew/utils/analytics.rb
+++ b/Library/Homebrew/utils/analytics.rb
@@ -8,7 +8,7 @@ def analytics_label
end
def report_analytics(type, metadata = {})
- return if ENV["HOMEBREW_NO_ANALYTICS"]
+ return if ENV["HOMEBREW_NO_ANALYTICS"] || ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"]
args = %W[
--max-time 3