diff options
| author | Oleg Oshmyan | 2011-10-15 02:21:13 +0100 |
|---|---|---|
| committer | Jack Nagel | 2011-11-02 19:02:53 -0500 |
| commit | 323c30978fd3ab008fc32caa58f34b9b0a14728f (patch) | |
| tree | f2ef014021fb28c1cca092615700fee73035b60c | |
| parent | 2c3b107d93d0c90bd41baa3d393612b720d9b0d2 (diff) | |
| download | brew-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-x | Library/Homebrew/cmd/audit.rb | 2 |
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 |
