aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorGautham Goli2017-09-02 12:38:18 +0530
committerGautham Goli2017-09-04 23:57:09 +0530
commitd45ff9c0fdfa834c55c01f9c95fe18064fabd76a (patch)
treef3d4a7ad2af0169e798db49b25f44c0a93dbe2f5 /Library/Homebrew/utils.rb
parent4ec26aea4025d19e70cdf59da6dfd7be3a389e44 (diff)
downloadbrew-d45ff9c0fdfa834c55c01f9c95fe18064fabd76a.tar.bz2
audit: Add a global flag to silent warning when auditing
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index e3137ac49..07e339576 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -102,7 +102,7 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
if ARGV.homebrew_developer? || disable ||
Homebrew.raise_deprecation_exceptions?
raise MethodDeprecatedError, message
- else
+ elsif !Homebrew.auditing?
opoo "#{message}\n"
end
end