formula_auditor: don't allow bottle :unneeded in core.
Now we have `all:` bottles and Bintray is going away for `mirror`s: let's bottle everything in Homebrew/homebrew-core.
This commit is contained in:
parent
04532cb621
commit
0eb9b62c2d
@ -438,14 +438,17 @@ module Homebrew
|
|||||||
|
|
||||||
def audit_bottle_disabled
|
def audit_bottle_disabled
|
||||||
return unless formula.bottle_disabled?
|
return unless formula.bottle_disabled?
|
||||||
return if formula.bottle_unneeded?
|
|
||||||
|
|
||||||
problem "Unrecognized bottle modifier" unless formula.bottle_disable_reason.valid?
|
|
||||||
|
|
||||||
return unless @core_tap
|
|
||||||
|
|
||||||
|
if !formula.bottle_disable_reason.valid?
|
||||||
|
problem "Unrecognized bottle modifier"
|
||||||
|
elsif @core_tap
|
||||||
|
if formula.bottle_unneeded?
|
||||||
|
problem "Formulae in homebrew/core should not use `bottle :unneeded`"
|
||||||
|
else
|
||||||
problem "Formulae in homebrew/core should not use `bottle :disabled`"
|
problem "Formulae in homebrew/core should not use `bottle :disabled`"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def audit_github_repository_archived
|
def audit_github_repository_archived
|
||||||
return if formula.deprecated? || formula.disabled?
|
return if formula.deprecated? || formula.disabled?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user