Skip to content
Snippets Groups Projects
Commit 39b8f106 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

update-report: don't show new, installed formulae.

These were those migrated from other taps but if they are installed
already: they aren't new to that user.
parent 36a34078
No related branches found
No related tags found
No related merge requests found
......@@ -582,14 +582,17 @@ class ReporterHub
def dump_formula_report(key, title)
formulae = select_formula(key).sort.map do |name, new_name|
# Format list items of renamed formulae
if key == :R
case key
when :R
name = pretty_installed(name) if installed?(name)
new_name = pretty_installed(new_name) if installed?(new_name)
"#{name} -> #{new_name}"
when :A
name unless installed?(name)
else
installed?(name) ? pretty_installed(name) : name
end
end
end.compact
return if formulae.empty?
# Dump formula list.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment