Merge pull request #5827 from fxcoudert/allow-head
Allow head in new formulas
This commit is contained in:
commit
7baec87297
@ -640,11 +640,8 @@ 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
|
|
||||||
new_formula_problem head_spec_message
|
|
||||||
elsif @versioned_formula
|
|
||||||
versioned_head_spec = %w[
|
versioned_head_spec = %w[
|
||||||
bash-completion@2
|
bash-completion@2
|
||||||
imagemagick@6
|
imagemagick@6
|
||||||
@ -652,7 +649,6 @@ module Homebrew
|
|||||||
]
|
]
|
||||||
problem head_spec_message unless versioned_head_spec.include?(formula.name)
|
problem head_spec_message unless versioned_head_spec.include?(formula.name)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
throttled = %w[
|
throttled = %w[
|
||||||
aws-sdk-cpp 10
|
aws-sdk-cpp 10
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user