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:
Dominyk Tiller 2016-05-16 18:40:22 +01:00
parent 898cb93f78
commit 2c6fa07e6d

View File

@ -552,11 +552,11 @@ class FormulaAuditor
end
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)"
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)"
end