audit: tweak devel/head tap check
For some reason the existing check seems to have started failing between
March and today. I haven't managed to narrow down why yet but the biggest
change between then and now was the core separation so perhaps related to that.
Perhaps at some point we started considering purely short tap names,
i.e. homebrew/devel-only rather than full tap names, i.e. homebrew/homebrew-devel-only,
in the audit mechanism.
This fixes the current issue whilst retaining the spirit of the original commit:
86d04e94e9
This commit is contained in:
parent
898cb93f78
commit
2c6fa07e6d
@ -552,11 +552,11 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_specs
|
def audit_specs
|
||||||
if head_only?(formula) && formula.tap.to_s.downcase !~ /-head-only$/
|
if head_only?(formula) && formula.tap.to_s.downcase !~ %r{[-/]head-only$}
|
||||||
problem "Head-only (no stable download)"
|
problem "Head-only (no stable download)"
|
||||||
end
|
end
|
||||||
|
|
||||||
if devel_only?(formula) && formula.tap.to_s.downcase !~ /-devel-only$/
|
if devel_only?(formula) && formula.tap.to_s.downcase !~ %r{[-/]devel-only$}
|
||||||
problem "Devel-only (no stable download)"
|
problem "Devel-only (no stable download)"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user