Merge pull request #2479 from MikeMcQuaid/audit-new-formula-patches

audit: new formulae should not require patches.
This commit is contained in:
Mike McQuaid 2017-04-22 11:06:27 +01:00 committed by GitHub
commit 96ea97967a

View File

@ -732,7 +732,10 @@ class FormulaAuditor
} }
end end
next if spec.patches.empty?
spec.patches.each { |p| patch_problems(p) if p.external? } 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 end
%w[Stable Devel].each do |name| %w[Stable Devel].each do |name|