From ebcf8be7892568f2cfba9880d2995cc0499eb092 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 7 Jul 2013 11:56:11 -0700 Subject: [PATCH] audit: skip an audit for mongodb --- Library/Homebrew/cmd/audit.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index eb14c321da..46197298b1 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -463,8 +463,10 @@ class FormulaAuditor problem "No double 'without': Use `build.without? '#{$1}'` to check for \"--without-#{$1}\"" end - if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/ - problem "Use build instead of ARGV to check options" + unless f.name == 'mongodb' # Mongo writes out a Ruby script that uses ARGV + if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/ + problem "Use build instead of ARGV to check options" + end end if line =~ /def options/