Fix JSON file download failure fallback
This commit is contained in:
parent
791022dc21
commit
cbda171c2b
@ -54,6 +54,7 @@ module Homebrew
|
||||
raise if target.empty?
|
||||
|
||||
opoo "#{target.basename}: update failed, falling back to cached version."
|
||||
JSON.parse(target.read)
|
||||
rescue JSON::ParserError
|
||||
target.unlink
|
||||
retry_count += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user