aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-12-01 15:38:05 +0000
committerMike McQuaid2012-12-01 15:38:05 +0000
commit549b07e8df341b25f218b9251ab60644519f1bdb (patch)
tree989c29b45950282e2c0fc0a9ce66e3bf4c5777e4 /Library
parentc4fb2b73e2602c07e02a78360ef9de59d417ca37 (diff)
downloadbrew-549b07e8df341b25f218b9251ab60644519f1bdb.tar.bz2
Fix bad reference to local_bottle_path.
Fixes Homebrew/homebrew#16337.
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? \