From 52658e793a591f76b3cbf3884e044f9dba7c5095 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 7 Mar 2014 16:43:33 +0000 Subject: [PATCH] pull: warn if not pulling bottles. --- Library/Contributions/cmd/brew-pull.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index 8e3a5112d3..db3c68d0fc 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -85,6 +85,14 @@ ARGV.named.each do |arg| changed_formulae << Formula.factory(formula) 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') ohai "Patch closes issue ##{issue}" message = `git log HEAD^.. --format=%B`