From 86d04e94e9caacf4aba766dd31c1707749fb5f2b Mon Sep 17 00:00:00 2001 From: Rainer M. Krug Date: Thu, 2 Jul 2015 16:59:35 +0200 Subject: 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 --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd/audit.rb') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index d51e18f49..5dab3047c 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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 -- cgit v1.2.3