diff options
| author | Rainer M. Krug | 2015-07-02 16:59:35 +0200 | 
|---|---|---|
| committer | Mike McQuaid | 2015-07-18 20:50:12 -0700 | 
| commit | 86d04e94e9caacf4aba766dd31c1707749fb5f2b (patch) | |
| tree | daa145ee93b5182aa4ed366f5cef7f932b0fda5c /Library/Homebrew/cmd/audit.rb | |
| parent | ac523bac06c97775420f7e5cb4c1922ce794ac14 (diff) | |
| download | brew-86d04e94e9caacf4aba766dd31c1707749fb5f2b.tar.bz2 | |
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>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -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 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  | 
