update-report: add newline if preinstall updated.

Fixes #858.
This commit is contained in:
Mike McQuaid 2016-09-03 19:36:34 +01:00
parent 9fd97dd3cf
commit 2682b59b7f

View File

@ -76,13 +76,16 @@ module Homebrew
if !ARGV.include?("--preinstall") && !ENV["HOMEBREW_UPDATE_FAILED"] if !ARGV.include?("--preinstall") && !ENV["HOMEBREW_UPDATE_FAILED"]
puts "Already up-to-date." puts "Already up-to-date."
end end
elsif hub.empty?
puts "No changes to formulae."
else else
hub.dump if hub.empty?
hub.reporters.each(&:migrate_tap_migration) puts "No changes to formulae."
hub.reporters.each(&:migrate_formula_rename) else
Descriptions.update_cache(hub) hub.dump
hub.reporters.each(&:migrate_tap_migration)
hub.reporters.each(&:migrate_formula_rename)
Descriptions.update_cache(hub)
end
puts if ARGV.include?("--preinstall")
end end
link_manpages link_manpages