audit: Fix cctools invocation check regular expression.

Additionally, ignore the cctools formula itself, since it obviously
needs to check cctools invocations.
This commit is contained in:
William Woodruff 2017-03-29 09:49:48 -04:00
parent 8608d1ea78
commit e7554b0b3f
No known key found for this signature in database
GPG Key ID: 85AE00C504833B3C

View File

@ -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