From 51810ae1eab1a7952c0f67e25318ddf93522e572 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Wed, 22 Jul 2015 15:27:58 +0800 Subject: [PATCH] audit: fix for no-compat mode --- Library/Homebrew/cmd/audit.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 5dab3047cf..90e4916901 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -520,6 +520,7 @@ class FormulaAuditor end def audit_patches + return unless formula.respond_to?(:patches) legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch) if legacy_patches.any? problem "Use the patch DSL instead of defining a 'patches' method"