mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
upgrade: don't error if already installed.
I've been convinced idempotency is a good thing for this command so this would be a good thing to get out for 2.2.0.
This commit is contained in:
@@ -75,13 +75,13 @@ module Homebrew
|
||||
(ARGV.resolved_formulae - outdated).each do |f|
|
||||
versions = f.installed_kegs.map(&:version)
|
||||
if versions.empty?
|
||||
onoe "#{f.full_specified_name} not installed"
|
||||
ofail "#{f.full_specified_name} not installed"
|
||||
else
|
||||
version = versions.max
|
||||
onoe "#{f.full_specified_name} #{version} already installed"
|
||||
opoo "#{f.full_specified_name} #{version} already installed"
|
||||
end
|
||||
end
|
||||
exit 1 if outdated.empty?
|
||||
exit
|
||||
end
|
||||
|
||||
pinned = outdated.select(&:pinned?)
|
||||
|
||||
Reference in New Issue
Block a user