aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index ff316f925..ae8422e25 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -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? \