Try to regenerate a corrupted 01-index.cache
commit92c51628e4bb5b71b0f6a9e77a3903de2db1f579
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 20 Sep 2016 20:37:52 +0000 (20 22:37 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 20 Sep 2016 21:48:34 +0000 (20 23:48 +0200)
treef128fd332bed610a5ecf82e38cec89c427f5300f
parent31eddce7a61fef89247dfe4fae4aac6591557be8
Try to regenerate a corrupted 01-index.cache

With this commit, if a corrupted index cache is detected the
`readIndexCache` function now regenerates the index cache and then
reattempt to read the index once (and 'die's if it fails again).
cabal-install/Distribution/Client/IndexUtils.hs