aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
diff options
context:
space:
mode:
authorXu Cheng2015-11-04 18:25:30 +0800
committerXu Cheng2015-11-04 20:44:28 +0800
commitffbb1828a2f7dea872fe6fcf488ebdfd6b58d901 (patch)
tree3bb4592b9009cddd34fbf1d9a1ccf754bddc494c /Library/Homebrew/cmd/update.rb
parentec114bb4806687c09075aca1c04e087c2153dd18 (diff)
downloadbrew-ffbb1828a2f7dea872fe6fcf488ebdfd6b58d901.tar.bz2
update: always rescue formula loading
Closes Homebrew/homebrew#45676. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/update.rb')
-rw-r--r--Library/Homebrew/cmd/update.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 10a3e05af..45c83b040 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -108,7 +108,8 @@ module Homebrew
begin
f = Formulary.factory("#{user}/#{repo}/#{newname}")
- rescue FormulaUnavailableError, *FormulaVersions::IGNORED_EXCEPTIONS
+ # short term fix to prevent situation like https://github.com/Homebrew/homebrew/issues/45616
+ rescue Exception
end
next unless f
@@ -314,7 +315,8 @@ class Updater
end
old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)
next if new_version == old_version
- rescue FormulaUnavailableError, *FormulaVersions::IGNORED_EXCEPTIONS => e
+ # short term fix to prevent situation like https://github.com/Homebrew/homebrew/issues/45616
+ rescue Exception => e
onoe e if ARGV.homebrew_developer?
end
map[:M] << file