audit: fix for no-compat mode

This commit is contained in:
Xu Cheng 2015-07-22 15:27:58 +08:00
parent 33befcf312
commit 51810ae1ea

View File

@ -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"