- Package:
- devscripts
- Source:
- devscripts
- Description:
- scripts to make the life of a Debian Package maintainer easier
- Submitter:
- Julian Gilbey
- Date:
- 2014-08-18 21:51:16 UTC
- Severity:
- wishlist
The excuses files come to a total of over 1MB. It would be great for grep-excuses to cache them in the same way that bts caches its bug reports so that they are not repeatedly downloaded if multiple queries are executed in separate commands. Thanks! Julian
We actually used to do that, but it was removed for #309802. We were even honoring the Last-Modified header so it wouldn't be re-downloaded unnecessarily. I think the correct fix for that bug would've been to use a tempfile instead of the cache directory if the cache directory wasn't writable, so let's do that now.
Greetings, I wrote a patch that should cache the excuses file. It checks the last-modified header and only downloads if the remote file is newer. The cache is saved in ~/.devscript_cache/excuses.html.gz. If this is not writeable the cache is ignored and the file is downloaded and read directly. Regards Sven
Greetings, I found an error in my first patch. I fixed it and attached the new patch. Regards Sven
Ok, now it's awkward. I found another error. Third patch attached... I hope this is the last. Regards Sven