From 0151bf9b14b7a12e10b86051dc8fe6e616fd16e0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 2 Jan 2013 21:13:56 +0000 Subject: [PATCH] brew-pull: cleanup installation options. --- Library/Contributions/cmds/brew-pull.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Contributions/cmds/brew-pull.rb b/Library/Contributions/cmds/brew-pull.rb index a724614689..22e5493057 100755 --- a/Library/Contributions/cmds/brew-pull.rb +++ b/Library/Contributions/cmds/brew-pull.rb @@ -80,8 +80,8 @@ ARGV.named.each do|arg| if (status == 'A' or status == 'M') and filename.include? '/Formula/' or tap url formula = File.basename(filename, '.rb') ohai "Installing #{formula}" - # Not sure if this is the best way to install? - safe_system 'brew', 'install', '--force', '--build-bottle', formula + install = Formula.factory(formula).installed? ? 'upgrade' : 'install' + safe_system 'brew', install, '--debug', '--fresh', formula end end end