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.
This commit is contained in:
parent
411172b9ad
commit
b41a88eac4
@ -503,7 +503,9 @@ class Reporter
|
|||||||
|
|
||||||
def migrate_formula_rename
|
def migrate_formula_rename
|
||||||
Formula.installed.map(&:oldname).compact.each do |old_name|
|
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]
|
new_name = tap.formula_renames[old_name]
|
||||||
next unless new_name
|
next unless new_name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user