From 9638c1820a20aa82e2f1dc5b8e374cc0e6426832 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 8 Jun 2010 11:24:07 -0700 Subject: [PATCH] External command: upgrade Reinstalls out outdated brews. See: http://github.com/mxcl/homebrew/issues/issue/1324 --- Library/Contributions/examples/brew-upgrade.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Library/Contributions/examples/brew-upgrade.rb diff --git a/Library/Contributions/examples/brew-upgrade.rb b/Library/Contributions/examples/brew-upgrade.rb new file mode 100755 index 0000000000..6c7831fdee --- /dev/null +++ b/Library/Contributions/examples/brew-upgrade.rb @@ -0,0 +1,11 @@ +# 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 + +brew_install