aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan2011-10-15 02:21:13 +0100
committerJack Nagel2011-11-02 19:02:53 -0500
commit323c30978fd3ab008fc32caa58f34b9b0a14728f (patch)
treef2ef014021fb28c1cca092615700fee73035b60c
parent2c3b107d93d0c90bd41baa3d393612b720d9b0d2 (diff)
downloadbrew-323c30978fd3ab008fc32caa58f34b9b0a14728f.tar.bz2
audit: check for build_universal? calls if --universal unused
Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 66bf5dce0..2f3ffbc0b 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -151,7 +151,7 @@ def audit_formula_options f, text
if documented_options.length > 0
documented_options.each do |o|
- next if o == '--universal'
+ next if o == '--universal' and text =~ /ARGV\.build_universal\?/
problems << " * Option #{o} is unused" unless options.include? o
end
end