Merge pull request #7101 from MichelleNguy/display-updated-casks

Display updated casks when running `brew update`
This commit is contained in:
Mike McQuaid 2020-03-03 19:34:15 +00:00 committed by GitHub
commit 486d498d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,6 +199,9 @@ class Reporter
if status == "D"
# Have a dedicated report array for deleted casks.
@report[:DC] << tap.formula_file_to_name(src)
elsif status == "M"
# Report updated casks
@report[:MC] << tap.formula_file_to_name(src)
end
end
@ -422,6 +425,8 @@ class ReporterHub
dump_formula_report :M, "Updated Formulae"
dump_formula_report :R, "Renamed Formulae"
dump_formula_report :D, "Deleted Formulae"
dump_formula_report :MC, "Updated Casks"
dump_formula_report :DC, "Deleted Casks"
end
private