aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorOleg Oshmyan2011-10-15 02:21:13 +0100
committerJack Nagel2011-11-02 19:02:53 -0500
commit79b7d18d4279655ea4a7154d71381059627d3b5d (patch)
tree291e87fa5c64adf047cf3c38b57194afc7bab616 /Library
parent2b0f50bf747946854c848de6c13bc7b68e2438c3 (diff)
downloadhomebrew-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-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