diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 32eec75c87..662e4a8e0f 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -392,6 +392,10 @@ class FormulaAuditor if text =~ /MACOS_VERSION/ problem "Use MacOS.version instead of MACOS_VERSION" end + + if text =~ /(MacOS.((snow_)?leopard|leopard|(mountain_)?lion)\?)/ + problem "#{$1} is deprecated, use a comparison to MacOS.version instead" + end end def audit