update-report: don't duplicate "already updated".

This would be displayed more than once when verbose output was enabled.

Closes Homebrew/homebrew#48469.
This commit is contained in:
Mike McQuaid 2016-01-26 09:03:28 +00:00
parent 9d216a53f8
commit 21924396f0

View File

@ -34,7 +34,10 @@ module Homebrew
puts "Updated #{updated_taps.size} tap#{plural(updated_taps.size)} " \ puts "Updated #{updated_taps.size} tap#{plural(updated_taps.size)} " \
"(#{updated_taps.join(", ")})." "(#{updated_taps.join(", ")})."
end end
puts "Already up-to-date." unless master_updated || !updated_taps.empty?
if !master_updated && updated_taps.empty? && !ARGV.verbose?
puts "Already up-to-date."
end
Tap.clear_cache Tap.clear_cache
Tap.each(&:link_manpages) Tap.each(&:link_manpages)