From 0a1232850050b9989bf7f98522869aefb0fd80b7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 5 Feb 2018 09:14:54 +0000 Subject: [PATCH] utils: no .metadata deprecations. Otherwise running on old casks can produce deprecations. Fixes #3738. --- Library/Homebrew/utils.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 77eae6f695..989f05b455 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|