update: always rescue formula loading
Closes Homebrew/homebrew#45676. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
ec114bb480
commit
ffbb1828a2
@ -108,7 +108,8 @@ module Homebrew
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
f = Formulary.factory("#{user}/#{repo}/#{newname}")
|
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
|
end
|
||||||
|
|
||||||
next unless f
|
next unless f
|
||||||
@ -314,7 +315,8 @@ class Updater
|
|||||||
end
|
end
|
||||||
old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)
|
old_version = FormulaVersions.new(formula).formula_at_revision(@initial_revision, &:pkg_version)
|
||||||
next if new_version == old_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?
|
onoe e if ARGV.homebrew_developer?
|
||||||
end
|
end
|
||||||
map[:M] << file
|
map[:M] << file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user