utils: skip migration of broken formulae symlinks.
Closes https://github.com/Homebrew/homebrew-core/issues/4973
This commit is contained in:
parent
a2f19f0a67
commit
569dbf4d05
@ -634,7 +634,11 @@ def migrate_legacy_keg_symlinks_if_necessary
|
|||||||
begin
|
begin
|
||||||
(HOMEBREW_PREFIX/"opt/#{name}").realpath
|
(HOMEBREW_PREFIX/"opt/#{name}").realpath
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
Formulary.factory(name).installed_prefix
|
begin
|
||||||
|
Formulary.factory(name).installed_prefix
|
||||||
|
rescue
|
||||||
|
next
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
dst = HOMEBREW_LINKED_KEGS/name
|
dst = HOMEBREW_LINKED_KEGS/name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user