Merge pull request #2416 from woodruffw/ruby-macho-audit-fix

audit: Fix cctools invocation check regular expression.
This commit is contained in:
William Woodruff 2017-03-29 10:22:16 -04:00 committed by GitHub
commit c69e4ee2f6

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