pull: bottle_unneeded? is covered by bottle_disabled?

This commit is contained in:
Xu Cheng 2015-11-01 17:51:10 +08:00
parent 68896d14aa
commit 593dff3dc1

View File

@ -133,10 +133,10 @@ module Homebrew
if ARGV.include? "--bottle" if ARGV.include? "--bottle"
if f.bottle if f.bottle
fetch_bottles = true fetch_bottles = true
elsif f.bottle_disabled?
ohai "#{f}: skipping disabled bottle: #{f.bottle_disable_reason}"
elsif f.bottle_unneeded? elsif f.bottle_unneeded?
ohai "#{f}: skipping unneeded bottle." ohai "#{f}: skipping unneeded bottle."
elsif f.bottle_disabled?
ohai "#{f}: skipping disabled bottle: #{f.bottle_disable_reason}"
end end
else else
next unless f.bottle next unless f.bottle