From e7554b0b3f71e0658e52e8dea974c511bc58aeba Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 29 Mar 2017 09:49:48 -0400 Subject: [PATCH] audit: Fix cctools invocation check regular expression. Additionally, ignore the cctools formula itself, since it obviously needs to check cctools invocations. --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index b6d7dbd2a2..e9465d968f 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1185,7 +1185,7 @@ class FormulaAuditor problem "'fails_with :llvm' is now a no-op so should be removed" end - if line =~ /system\s+['"](otool)|(install_name_tool)|(lipo)/ + if line =~ /system\s+['"](otool|install_name_tool|lipo)/ && formula.name != "cctools" problem "Use ruby-macho instead of calling #{$1}" end