Merge pull request #5827 from fxcoudert/allow-head

Allow head in new formulas
This commit is contained in:
FX Coudert 2019-03-04 16:15:40 +01:00 committed by GitHub
commit 7baec87297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -640,18 +640,14 @@ module Homebrew
problem "Formulae should not have a `devel` spec" if formula.devel problem "Formulae should not have a `devel` spec" if formula.devel
if formula.head if formula.head && @versioned_formula
head_spec_message = "Formulae should not have a `HEAD` spec" head_spec_message = "Formulae should not have a `HEAD` spec"
if @new_formula versioned_head_spec = %w[
new_formula_problem head_spec_message bash-completion@2
elsif @versioned_formula imagemagick@6
versioned_head_spec = %w[ python@2
bash-completion@2 ]
imagemagick@6 problem head_spec_message unless versioned_head_spec.include?(formula.name)
python@2
]
problem head_spec_message unless versioned_head_spec.include?(formula.name)
end
end end
throttled = %w[ throttled = %w[