From 1c9cfb2419d6d27c75f36229ad554c8bf7ecccf5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 27 Apr 2017 16:30:05 +0100 Subject: [PATCH] audit: tweak dependency option audit. Make sure that `if build.with?` isn't caught. --- 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 8064e1ebb8..b69fbcfb78 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -981,7 +981,7 @@ class FormulaAuditor problem "#{$2} modules should be vendored rather than use deprecated `depends_on \"#{$1}\" => :#{$2}#{$3}`" end - if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*['"](.+)['"]/ + if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*(?