Skip to content
Snippets Groups Projects
Commit ec0737d7 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #2370 from MikeMcQuaid/update-migrate-all-formula

update-report: migrate all formulae every time.
parents 84ec045f 4af8bdf1
No related branches found
No related tags found
No related merge requests found
......@@ -502,10 +502,14 @@ class Reporter
end
def migrate_formula_rename
report[:R].each do |old_full_name, new_full_name|
old_name = old_full_name.split("/").last
Formula.installed.map(&:oldname).compact.each do |old_name|
next unless (dir = HOMEBREW_CELLAR/old_name).directory? && !dir.subdirs.empty?
new_name = tap.formula_renames[old_name]
next unless new_name
new_full_name = "#{tap}/#{new_name}"
begin
f = Formulary.factory(new_full_name)
rescue Exception => e
......
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