aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-22 11:06:27 +0100
committerGitHub2017-04-22 11:06:27 +0100
commit96ea97967a0c985e3bbb7165d596c1a08411135c (patch)
treecba080afa39fec2194a98a0eef4eba5e6a312890 /Library/Homebrew/dev-cmd
parent6e1faf5b8837e228785dde0cfd8ca47336fb5494 (diff)
parent1775c32210021b76278c24f0c48f95e26a0ab4a2 (diff)
downloadbrew-96ea97967a0c985e3bbb7165d596c1a08411135c.tar.bz2
Merge pull request #2479 from MikeMcQuaid/audit-new-formula-patches
audit: new formulae should not require patches.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 4871cc8b2..35798391e 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -732,7 +732,10 @@ class FormulaAuditor
}
end
+ next if spec.patches.empty?
spec.patches.each { |p| patch_problems(p) if p.external? }
+ next unless @new_formula
+ problem "New formulae should not require patches to build. Patches should be submitted and accepted upstream first."
end
%w[Stable Devel].each do |name|