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

update-report: check migration symlinks.

Check if `HOMEBREW_CELLAR/old_name` is a symlink. If so, it's already
been migrated so can be skipped.
parent 411172b9
No related branches found
No related tags found
No related merge requests found
......@@ -503,7 +503,9 @@ class Reporter
def migrate_formula_rename
Formula.installed.map(&:oldname).compact.each do |old_name|
next unless (dir = HOMEBREW_CELLAR/old_name).directory? && !dir.subdirs.empty?
old_name_dir = HOMEBREW_CELLAR/old_name
next if old_name_dir.symlink?
next unless old_name_dir.directory? && !old_name_dir.subdirs.empty?
new_name = tap.formula_renames[old_name]
next unless new_name
......
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