mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
keg: handle more exceptions on uninstall.
Fixes https://github.com/Homebrew/brew/issues/7110
This commit is contained in:
parent
35ae54494b
commit
b4b17fa892
@ -135,7 +135,7 @@ class Keg
|
|||||||
f = keg.to_formula
|
f = keg.to_formula
|
||||||
keg_formulae << f
|
keg_formulae << f
|
||||||
[f.name, f.tap]
|
[f.name, f.tap]
|
||||||
rescue FormulaUnavailableError
|
rescue
|
||||||
# If the formula for the keg can't be found,
|
# If the formula for the keg can't be found,
|
||||||
# fall back to the information in the tab.
|
# fall back to the information in the tab.
|
||||||
[keg.name, keg.tab.tap]
|
[keg.name, keg.tab.tap]
|
||||||
@ -257,8 +257,7 @@ class Keg
|
|||||||
|
|
||||||
tap = begin
|
tap = begin
|
||||||
to_formula.tap
|
to_formula.tap
|
||||||
rescue FormulaUnavailableError, TapFormulaAmbiguityError,
|
rescue
|
||||||
TapFormulaWithOldnameAmbiguityError
|
|
||||||
# If the formula can't be found, just ignore aliases for now.
|
# If the formula can't be found, just ignore aliases for now.
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user