From 4226386ef99e71c149b0bb45cba4dca5c52e6054 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 31 Jul 2014 19:37:39 -0500 Subject: Hide the options data structure better --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 31e0b0da8..3660ad259 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -136,7 +136,7 @@ class FormulaAuditor end dep.options.reject do |opt| - next true if dep_f.build.has_option?(opt.name) + next true if dep_f.option_defined?(opt) dep_f.requirements.detect do |r| if r.recommended? opt.name == "with-#{r.name}" -- cgit v1.2.3