Check formula options properly to rule out bottle.

Fixes Homebrew/homebrew#14148.
This commit is contained in:
Mike McQuaid 2012-08-25 11:51:37 -07:00
parent d5b954ebd4
commit 82d1310800

View File

@ -12,7 +12,7 @@ def install_bottle? f
return true if ARGV.include? '--install-bottle'
not ARGV.build_from_source? \
and ARGV.bottles_supported? \
and ARGV.options_only.empty? \
and ARGV.used_options(f).empty? \
and bottle_current?(f)
end