This is not easy to do because the cache is mmaped directly. If any
filesystems/memory problems comes up libapt will just crash. A possible fix
would be to write a checksum (md5/sha1) when the cache is closed and re-check
that checksum when the cache is opened again. The performance hit is probably
pretty bad though.
This is not easy to do because the cache is mmaped directly. If any
filesystems/memory problems comes up libapt will just crash. A possible fix
would be to write a checksum (md5/sha1) when the cache is closed and re-check
that checksum when the cache is opened again. The performance hit is probably
pretty bad though.