Merge pull request #2376 from MikeMcQuaid/update-migrate-check-symlinks

update-report: check migration symlinks.
This commit is contained in:
JCount 2017-03-21 18:49:27 -04:00 committed by GitHub
commit 17cc40f112

View File

@ -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