Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the package cache resistant against deserialization errors
Today I've been hitting zlib decoding errors and I'm 99% sure my disk isn't failing (RAID 1 array). For now I'm inclined not to dive too deep into this, because there's a very simple fix (see first line :-). For future reference, here's the zlib error: File ".../deb_pkg_tools/cache.py", line 299, in control_fields return self.cache.decode(self['control_fields']) File ".../deb_pkg_tools/cache.py", line 249, in decode return pickle.loads(zlib.decompress(database_value)) error: Error -5 while decompressing data
- Loading branch information
Showing
2 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters