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,11 +640,8 @@ 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
@ -652,7 +649,6 @@ module Homebrew
]
problem head_spec_message unless versioned_head_spec.include?(formula.name)
end
end
throttled = %w[
aws-sdk-cpp 10