pull: warn if not pulling bottles.

This commit is contained in:
Mike McQuaid 2014-03-07 16:43:33 +00:00
parent aa15b265e5
commit 52658e793a

View File

@ -85,6 +85,14 @@ ARGV.named.each do |arg|
changed_formulae << Formula.factory(formula) changed_formulae << Formula.factory(formula)
end end
end end
unless ARGV.include?('--bottle')
changed_formulae.each do |f|
next unless f.bottle
opoo "#{f} has a bottle: do you need to update it with --bottle?"
end
end
if issue && !ARGV.include?('--clean') if issue && !ARGV.include?('--clean')
ohai "Patch closes issue ##{issue}" ohai "Patch closes issue ##{issue}"
message = `git log HEAD^.. --format=%B` message = `git log HEAD^.. --format=%B`