aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 83350988b..c6247765f 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -78,7 +78,14 @@ module Homebrew
next unless (dir = HOMEBREW_CELLAR/oldname).directory? && !dir.subdirs.empty?
begin
- migrator = Migrator.new(Formulary.factory("#{user}/#{repo}/#{newname}"))
+ f = Formulary.factory("#{user}/#{repo}/#{newname}")
+ rescue FormulaUnavailableError, *FormulaVersions::IGNORED_EXCEPTIONS
+ end
+
+ next unless f
+
+ begin
+ migrator = Migrator.new(f)
migrator.migrate
rescue Migrator::MigratorDifferentTapsError
end