aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2018-02-05 11:58:29 +0100
committerGitHub2018-02-05 11:58:29 +0100
commit62f85cfabbcff722afb406e48e56d5b10e6fc654 (patch)
tree443d1781308fef1897285b3a9bf670b26997a63c /Library
parent3ac2f81f3c07232fc8d7373bbd43a46abe85a3d8 (diff)
parent0a1232850050b9989bf7f98522869aefb0fd80b7 (diff)
downloadbrew-62f85cfabbcff722afb406e48e56d5b10e6fc654.tar.bz2
Merge pull request #3765 from MikeMcQuaid/metadata-odeprecated
utils: no .metadata deprecations.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 77eae6f69..989f05b45 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -83,9 +83,11 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
backtrace = caller
tap_message = nil
- # Don't throw deprecations at all for cached or .brew formulae.
+ # Don't throw deprecations at all for cached, .brew or .metadata files.
return if backtrace.any? do |line|
- line.include?(HOMEBREW_CACHE) || line.include?("/.brew/")
+ line.include?(HOMEBREW_CACHE) ||
+ line.include?("/.brew/") ||
+ line.include?("/.metadata/")
end
caller_message = backtrace.detect do |line|