utils: skip migration of broken formulae symlinks.

Closes https://github.com/Homebrew/homebrew-core/issues/4973
This commit is contained in:
Mike McQuaid 2016-09-19 10:40:16 +01:00
parent a2f19f0a67
commit 569dbf4d05

View File

@ -634,7 +634,11 @@ def migrate_legacy_keg_symlinks_if_necessary
begin
(HOMEBREW_PREFIX/"opt/#{name}").realpath
rescue Errno::ENOENT
Formulary.factory(name).installed_prefix
begin
Formulary.factory(name).installed_prefix
rescue
next
end
end
end
dst = HOMEBREW_LINKED_KEGS/name