Don’t migrate symlinks.

This commit is contained in:
Markus Reiter 2018-08-25 21:57:16 +02:00
parent 3988458919
commit b7847e4657

View File

@ -29,6 +29,7 @@ module UpdateMigrator
formula_downloaders = if HOMEBREW_CACHE.directory?
HOMEBREW_CACHE.children
.reject(&:symlink?)
.select(&:file?)
.map { |child| child.basename.to_s.sub(/\-\-.*/, "") }
.uniq
@ -42,6 +43,8 @@ module UpdateMigrator
cask_downloaders = if (HOMEBREW_CACHE/"Cask").directory?
(HOMEBREW_CACHE/"Cask").children
.reject(&:symlink?)
.select(&:file?)
.map { |child| child.basename.to_s.sub(/\-\-.*/, "") }
.uniq
.map(&load_cask)