Fix bad reference to local_bottle_path.

Fixes Homebrew/homebrew#16337.
This commit is contained in:
Mike McQuaid 2012-12-01 15:38:05 +00:00
parent c4fb2b73e2
commit 549b07e8df

View File

@ -11,7 +11,8 @@ end
def install_bottle? f
return true if ARGV.include? '--install-bottle'
return true if f.downloader and f.downloader.local_bottle_path
return true if f.downloader and defined? f.downloader.local_bottle_path \
and f.downloader.local_bottle_path
not ARGV.build_from_source? \
and MacOS.bottles_supported? \
and ARGV.used_options(f).empty? \