From 323c30978fd3ab008fc32caa58f34b9b0a14728f Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Sat, 15 Oct 2011 02:21:13 +0100 Subject: [PATCH] audit: check for build_universal? calls if --universal unused Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 66bf5dce01..2f3ffbc0be 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