aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
AgeCommit message (Collapse)Author
2012-03-10Remove bad exit status; need to fix another way.Mike McQuaid
2012-03-09Add better Unix exit codes.Mike McQuaid
Closes Homebrew/homebrew#10809.
2012-03-07Allow dependencies to still installMax Howell
Oops bug.
2012-03-07Don't allow `sudo brew upgrade` if not sensibleMax Howell
2012-03-07Don't abort upgrade if one formula won't buildMax Howell
Also, unlink previous keg before installing to prevent issues when existing installed brews cause build problems for the newer installed brew. If the build fails the active keg is relinked before aborting. Fixes #10341.
2012-02-20upgrade: unlink relative to the correct kegJack Nagel
Calling Keg#unlink on "#{f.rack}/#{f.version}" will perform the unlink relative to the _new_ keg, rather than the keg we are upgrading from. Fix this by resolving the linked_keg entry and unlinking relative to it. Fixes Homebrew/homebrew#10296. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-16brew-upgrade: Fix installation of dependenciesCharlie Sharpsteen
Fixes Homebrew/homebrew#7528. Closes Homebrew/homebrew#7572.
2011-09-16Return Formula objects from `outdated_brews`Charlie Sharpsteen
Previously, `outdated_brews` returned a list of lists---each containing three components of a Formula object: - f.rack - f.name - f.version Frequently more information is required which necessitates back-casting from `name` to a Formula object---simpy returning formula objects removes this step.
2011-09-16Centralize definition of `rack` in formula.rbCharlie Sharpsteen
`rack` is a commonly used alias for `formula.prefix.parent`---so common that it gets defined and used quite a bit. This patch makes `rack` an official method of the `Formula` class.
2011-09-02Handle brew upgrade ARGV errors properlyMax Howell
Fixes Homebrew/homebrew#7304.
2011-08-25Leopard: Eliminate moar `Array.count` from `brew upgrade`Charlie Sharpsteen
2011-08-24Leopard: Fix undefined method `count` for `Array`Charlie Sharpsteen
Leopard runs Ruby 1.8.6 while Snow Leopard runs 1.8.7 and `Array.count` was not introduced until 1.8.7. Using `Array.length` instead.
2011-08-24`brew upgrade`Max Howell
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though. Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.