diff options
| author | Xu Cheng | 2015-11-01 20:34:08 +0800 | 
|---|---|---|
| committer | Mike McQuaid | 2015-11-01 08:22:18 -0800 | 
| commit | ae329a802b76da2f820755e09b2c6bc2ad0609a7 (patch) | |
| tree | 6a90b409f5ef821d3ac20da488af8c3f6c8a5e22 /Library/Homebrew/cmd | |
| parent | ff9fdc078f883f6dba57513d182bab969794f4de (diff) | |
| download | brew-ae329a802b76da2f820755e09b2c6bc2ad0609a7.tar.bz2 | |
pull: use bottle_defined?
Fixes Homebrew/homebrew#45575
Closes Homebrew/homebrew#45577.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/pull.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb index 63f5551b8..53894983a 100644 --- a/Library/Homebrew/cmd/pull.rb +++ b/Library/Homebrew/cmd/pull.rb @@ -131,7 +131,7 @@ module Homebrew        fetch_bottles = false        changed_formulae.each do |f|          if ARGV.include? "--bottle" -          if f.bottle +          if f.bottle_defined?              fetch_bottles = true            elsif f.bottle_unneeded?              ohai "#{f}: skipping unneeded bottle." @@ -139,7 +139,7 @@ module Homebrew              ohai "#{f}: skipping disabled bottle: #{f.bottle_disable_reason}"            end          else -          next unless f.bottle +          next unless f.bottle_defined?            opoo "#{f.full_name} has a bottle: do you need to update it with --bottle?"          end        end  | 
