aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-07-07 11:56:11 -0700
committerAdam Vandenberg2013-07-17 06:58:11 -0700
commitebcf8be7892568f2cfba9880d2995cc0499eb092 (patch)
tree3e603d551daee1040ac07ac34181e189d680dd00 /Library
parent456621bb5487812d55918f34793f31ac0d8cbb33 (diff)
downloadbrew-ebcf8be7892568f2cfba9880d2995cc0499eb092.tar.bz2
audit: skip an audit for mongodb
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index eb14c321d..46197298b 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/