Library/Homebrew/migrator.rb
# Remove opt/oldname link if it belongs to newname.
Remove opt/oldname link if it belongs to newname.
Remove opt / oldname link if it belongs to newname .
def unlink_oldname_opt
    return unless old_opt_record
    if old_opt_record.symlink? && old_opt_record.exist? \
        && new_linked_keg_record.exist? \
        && new_linked_keg_record.realpath == old_opt_record.realpath
      old_opt_record.unlink
      old_opt_record.parent.rmdir_if_possible
    end
  end
def unlink_oldname_opt return unless old_opt_record if old_opt_record . symlink? && old_opt_record . exist? && new_linked_keg_record . exist? && new_linked_keg_record . realpath == old_opt_record . realpath old_opt_record . unlink old_opt_record . parent . rmdir_if_possible end end
Remove opt/oldname link if it belongs to newname.
Remove opt / oldname link if it belongs to newname .