diff options
| author | Oleg Oshmyan | 2011-10-15 02:21:13 +0100 |
|---|---|---|
| committer | Jack Nagel | 2011-11-02 19:02:53 -0500 |
| commit | 79b7d18d4279655ea4a7154d71381059627d3b5d (patch) | |
| tree | 291e87fa5c64adf047cf3c38b57194afc7bab616 /Library | |
| parent | 2b0f50bf747946854c848de6c13bc7b68e2438c3 (diff) | |
| download | homebrew-79b7d18d4279655ea4a7154d71381059627d3b5d.tar.bz2 | |
audit: check for build_universal? calls if --universal unused
Closes #8123.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -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 |
