diff options
| author | Mike McQuaid | 2013-01-02 21:13:56 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-01-02 21:14:03 +0000 |
| commit | 0151bf9b14b7a12e10b86051dc8fe6e616fd16e0 (patch) | |
| tree | afcda53586db68a59526acc89b7b6d352491ffb7 /Library | |
| parent | 755a2fbe52cb1938db1093f98d2b83f3f1701828 (diff) | |
| download | brew-0151bf9b14b7a12e10b86051dc8fe6e616fd16e0.tar.bz2 | |
brew-pull: cleanup installation options.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmds/brew-pull.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmds/brew-pull.rb b/Library/Contributions/cmds/brew-pull.rb index a72461468..22e549305 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 |
