aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-03 19:36:34 +0100
committerMike McQuaid2016-09-03 19:36:34 +0100
commit2682b59b7f9bf668d73ee36e073f6e2a823f57ef (patch)
tree03f4cffedeeeea9e70d860514ccf82bba3d71c89 /Library
parent9fd97dd3cf26b6644a9f808945869b2af44db26e (diff)
downloadbrew-2682b59b7f9bf668d73ee36e073f6e2a823f57ef.tar.bz2
update-report: add newline if preinstall updated.
Fixes #858.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-report.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index 5121bdb6c..e1ac3ec67 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -76,13 +76,16 @@ module Homebrew
if !ARGV.include?("--preinstall") && !ENV["HOMEBREW_UPDATE_FAILED"]
puts "Already up-to-date."
end
- elsif hub.empty?
- puts "No changes to formulae."
else
- hub.dump
- hub.reporters.each(&:migrate_tap_migration)
- hub.reporters.each(&:migrate_formula_rename)
- Descriptions.update_cache(hub)
+ if hub.empty?
+ puts "No changes to formulae."
+ else
+ 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
link_manpages