diff options
| author | Dominyk Tiller | 2016-05-16 18:40:22 +0100 |
|---|---|---|
| committer | Dominyk Tiller | 2016-05-26 11:05:10 +0100 |
| commit | 2c6fa07e6d3f5b28f3ae198d6d84889b3d728585 (patch) | |
| tree | d1743ed120a1694eb2299726b3be22aee009e711 /Library | |
| parent | 898cb93f78a2ee75c015b3b80c9f423af2b37a22 (diff) | |
| download | brew-2c6fa07e6d3f5b28f3ae198d6d84889b3d728585.tar.bz2 | |
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
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 2e459d454..77670ad11 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 |
