aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-19 10:40:16 +0100
committerMike McQuaid2016-09-19 10:40:18 +0100
commit569dbf4d058302f0fa457d55f508ae250885d239 (patch)
tree07590955c446ee5d4c4376c10480a8322d6e2012 /Library
parenta2f19f0a675f7cb384b48bad773d31366c6b258d (diff)
downloadbrew-569dbf4d058302f0fa457d55f508ae250885d239.tar.bz2
utils: skip migration of broken formulae symlinks.
Closes https://github.com/Homebrew/homebrew-core/issues/4973
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 2e1a677b3..cda67a8c6 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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