aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 32eec75c8..662e4a8e0 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