From c297d39420759cea8c60a50b3f1b354c5ef27584 Mon Sep 17 00:00:00 2001 From: commitay Date: Wed, 23 May 2018 07:36:59 +1000 Subject: [PATCH] audit: add back new formulae condition for patches --- Library/Homebrew/dev-cmd/audit.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 6fbd2b2848..1c7f9d7043 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -541,6 +541,7 @@ module Homebrew end next if spec.patches.empty? + next unless @new_formula new_formula_problem "Formulae should not require patches to build. Patches should be submitted and accepted upstream first." end