#671854 devscripts: grep-excuses should cache excuses files

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
#671854#5
Date:
2012-05-07 14:46:52 UTC
From:
To:
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

#671854#10
Date:
2012-05-07 21:49:44 UTC
From:
To:
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.

#671854#15
Date:
2014-08-17 12:14:21 UTC
From:
To:
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

#671854#22
Date:
2014-08-18 21:33:49 UTC
From:
To:
Greetings,

I found an error in my first patch. I fixed it and attached the new
patch.

Regards
Sven

#671854#27
Date:
2014-08-18 21:45:55 UTC
From:
To:
Ok, now it's awkward. I found another error. Third patch attached...
I hope this is the last.

Regards
Sven