diff options
Diffstat (limited to 'Library/Contributions/examples/brew-upgrade.rb')
| -rwxr-xr-x | Library/Contributions/examples/brew-upgrade.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Contributions/examples/brew-upgrade.rb b/Library/Contributions/examples/brew-upgrade.rb index 6c7831fde..3ffb570ac 100755 --- a/Library/Contributions/examples/brew-upgrade.rb +++ b/Library/Contributions/examples/brew-upgrade.rb @@ -1,11 +1,7 @@ # Updates all outdated brews # See: http://github.com/mxcl/homebrew/issues/issue/1324 -# patch ARGV to use all of the outdated packages as the names passed in -module HomebrewArgvExtension - def formulae - @formulae = outdated_brews.map {|_keg, name, _version| Formula.factory name} - end -end +require 'cmd/outdated' +require 'cmd/install' -brew_install +Homebrew.install_formulae Homebrew.outdated_brews.map{ |_keg, name, _version| Formula.factory name } |
