audit: recognise head-only and devel-only taps.

add wildcard into expressions to identify head-only and dev-only taps
to avoid "head-only" and "devel-only" errors when formula is in
*head-only or *devel-only tap

Closes Homebrew/homebrew#41289.
Closes Homebrew/homebrew#41413.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Rainer M. Krug 2015-07-02 16:59:35 +02:00 committed by Mike McQuaid
parent ac523bac06
commit 86d04e94e9

View File

@ -468,11 +468,11 @@ class FormulaAuditor
end
def audit_specs
if head_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-head-only"
if head_only?(formula) && formula.tap.to_s.downcase !~ /-head-only$/
problem "Head-only (no stable download)"
end
if devel_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-devel-only"
if devel_only?(formula) && formula.tap.to_s.downcase !~ /-devel-only$/
problem "Devel-only (no stable download)"
end