Allow head in new formulas

This commit is contained in:
FX Coudert 2019-03-02 10:56:27 +01:00
parent d6e7c9f132
commit b796174d2c

View File

@ -640,18 +640,14 @@ module Homebrew
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"
if @new_formula
new_formula_problem head_spec_message
elsif @versioned_formula
versioned_head_spec = %w[
bash-completion@2
imagemagick@6
python@2
]
problem head_spec_message unless versioned_head_spec.include?(formula.name)
end
versioned_head_spec = %w[
bash-completion@2
imagemagick@6
python@2
]
problem head_spec_message unless versioned_head_spec.include?(formula.name)
end
throttled = %w[