From 2c6fa07e6d3f5b28f3ae198d6d84889b3d728585 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 16 May 2016 18:40:22 +0100 Subject: [PATCH] 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: https://github.com/Homebrew/brew/commit/86d04e94e9caacf4aba766dd31c1707749fb5f2b --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 2e459d454b..77670ad11f 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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