From 8157515b2aa7de4a8a79568becb9d050e7fa2c45 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 16 Feb 2014 22:10:22 +0000 Subject: [PATCH] audit: whitelist pyobject3 use of ARGV. --- Library/Homebrew/cmd/audit.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 31438560dc..48f1d6620e 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -419,7 +419,9 @@ class FormulaAuditor problem "No double 'without': Use `build.without? '#{$1}'` to check for \"--without-#{$1}\"" end - unless f.name == 'mongodb' # Mongo writes out a Ruby script that uses ARGV + # Mongo writes out a Ruby script that uses ARGV + # Python formulae need ARGV for Requirements + unless f.name == 'mongodb' || f.name == "pyobject3" if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/ problem "Use build instead of ARGV to check options" end