diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-07-13 15:52:29 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-07-13 18:29:01 +0200 |
commit | 895d1eda547708dd46074a2dd2f934de275fb102 (patch) | |
tree | fb3558b5f659585eee03df3b3b7d8e7c07a75aee /doc | |
parent | 074efd63a8b220fc1c6e450c4ac31b153ebd5f84 (diff) | |
download | patches-895d1eda547708dd46074a2dd2f934de275fb102.tar patches-895d1eda547708dd46074a2dd2f934de275fb102.tar.gz |
substitute: Store cached narinfo in cache-specific sub-directories.
This ensures that switching between different substitute servers doesn't lead
to a polluted narinfo cache.
* guix/scripts/substitute.scm (narinfo-cache-file): Add 'cache-url'
parameter. Add the base32 of CACHE-URL as a sub-directory under
%NARINFO-CACHE-DIRECTORY. Update callers.
(cached-narinfo): Likewise. Call 'mkdir-p' on the dirname of the cache
file. Update callers.
(remove-expired-cached-narinfos): Add 'directory' parameter and use it
instead of %NARINFO-CACHE-DIRECTORY.
(narinfo-cache-directories): New procedure.
(maybe-remove-expired-cached-narinfo): Call 'remove-expired-cached-narinfos'
for each item returned by 'narinfo-cache-directories'.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions