formula_auditor: make Linux-only GCC dep audit non-strict.
Otherwise we have to run this separately in `brew test-bot` which is slower and more confusing.
This commit is contained in:
parent
9b76182c11
commit
b594e87a7f
@ -445,16 +445,9 @@ module Homebrew
|
|||||||
|
|
||||||
def audit_gcc_dependency
|
def audit_gcc_dependency
|
||||||
return unless @core_tap
|
return unless @core_tap
|
||||||
return if !@strict && !(@git && formula.tap.git?) # git log is required for non-strict audit
|
|
||||||
return unless Homebrew::SimulateSystem.simulating_or_running_on_linux?
|
return unless Homebrew::SimulateSystem.simulating_or_running_on_linux?
|
||||||
return unless linux_only_gcc_dep?(formula)
|
return unless linux_only_gcc_dep?(formula)
|
||||||
|
|
||||||
bad_gcc_dep = @strict || begin
|
|
||||||
fv = FormulaVersions.new(formula)
|
|
||||||
fv.formula_at_revision("origin/HEAD") { |prev_f| !linux_only_gcc_dep?(prev_f) }
|
|
||||||
end
|
|
||||||
return unless bad_gcc_dep
|
|
||||||
|
|
||||||
problem "Formulae in homebrew/core should not have a Linux-only dependency on GCC."
|
problem "Formulae in homebrew/core should not have a Linux-only dependency on GCC."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user